Problem/Motivation
- Install 8.2.x with the standard profile and enable Outside In.
- Visit the frontpage.
- Click "Edit" in the toolbar to toggle editing mode.
- Click on the Tools block.
- Click on the Search block.
- Try to toggle off Edit mode by clicking on Editing. You can't. It's stuck and becomes weirdly grayed out:
Workaround: force-reload the page to get out of editing mode.
Proposed resolution
TBD
Remaining tasks
TBD
User interface changes
Presumably, "Editing" does not get stuck
API changes
TBD
Data model changes
Hopefully not.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff.txt | 522 bytes | GrandmaGlassesRopeMan |
| #8 | 2787135-8.patch | 548 bytes | GrandmaGlassesRopeMan |
| #7 | interdiff.txt | 811 bytes | GrandmaGlassesRopeMan |
| #7 | 2787135-7.patch | 530 bytes | GrandmaGlassesRopeMan |
| #5 | editissues.gif | 1.09 MB | GrandmaGlassesRopeMan |
Comments
Comment #2
xjmComment #3
xjmComment #4
swentel commentedI can confirm this. In general, toggling between edit back and forth doesn't seem to switch nicely always. Sometimes also after saving configuration of a block. Smells like browser caching bug, but not sure, but I remember pwolanin mentioning this somewhere and proposing to add a query parameter (but I can't recall anymore on IRC/twitter/issue)
Comment #5
GrandmaGlassesRopeManThis fixes an issue where the handler for toggling edit mode would get bound multiple times preventing you from escaping edit mode.
Comment #6
GrandmaGlassesRopeManComment #7
GrandmaGlassesRopeManRerolled this based on #2786459: "Offcanvas" tray should be using the existing dialog system.
Comment #8
GrandmaGlassesRopeManSet an appropriate key for
.once().Comment #9
cashwilliams commentedDid not code review but tested and appears to fix the problem.
Comment #10
cashwilliams commentedWell, maybe I should actually look at the patch first... Code reviewed.
Comment #11
swentel commentedyep, +1, fixes it completely. Code looks fine to me.
Comment #12
webchickCommitted and pushed to 8.2.x and 8.3.x. Thanks!
Comment #15
webchickAlso retroactively tagging.
Comment #16
xjmAwesome to see this fixed so fast; it was a pretty confusing bug.
I wonder if maybe we could add JS tests to ensure this doesn't regress?
Comment #17
nod_That fix was in #2785589: Fix js and jsdoc of outside-in module too.
Comment #19
tedbowChanging to new settings_tray.module component. @drpal thanks for script help! :)