Closed Bug 1135832 Opened 5 years ago Closed 5 years ago

[Customizer] Re-select previously selected element on DOM

Categories

(Firefox OS Graveyard :: Gaia, defect, P1)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: drs, Assigned: drs)

References

Details

(Whiteboard: [spark])

Currently, we're throwing away the user's element selection whenever the DOM is updated. This makes it difficult to change the DOM, or interact with content and inspect at the same time. To mitigate this, we can do the following:

1. If the selected element is still there after a DOM update, re-select it.
2. If it isn't, select its nearest parent.
No longer blocks: 1133835
Assignee: nobody → drs.bugzilla
Status: NEW → ASSIGNED
https://github.com/fxos/customizer/commit/9e07b2ecb5d7c849ecf302e890329f5ec56461e2
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Whiteboard: [lightsaber] → [ignite]
Whiteboard: [ignite] → [spark]
You need to log in before you can comment on or make changes to this bug.