Download & Extend

Links don't work after toggling edit/view mode

Project:Edit
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Edit D7 Backport

Issue Summary

To reproduce, toggle edit mode, then toggle back to view mode, then try and click a link. You can't. The universe's cruelest joke.

Comments

#1

Title:Toggling edit/view mode doesn't work» Links don't work after toggling edit/view mode

#2

Problem is in editingWidgets/*widget.js files, there is a preventDefault on click event that is bound but never released.

#3

If so, then that bug is most likely also in D8, so I'll port it over to 8.

#4

Priority:major» critical

#5

Confirmed that this is also a bug in Drupal 8. Funny that nobody reported this yet.

#6

Status:active» needs review

Nailed it.

There is a problem when the page opens with #edit but that should be solvable. I'll look into it tomorrow.

#7

I wonder if this is related to the lazy loading of editors.

#8

I'd be surprised. It's all happening in app.js which is present on page load.

#9

Comes down to a createjs issue https://github.com/bergie/create/issues/133

#10

Status:needs review» fixed

Ok this one is solved but I made another more tricky bug appear, see #1895458: Duplicate data-edit-id attribute for node title.

#11

How did you solve this without fixing the upstream Create.js problem?

#12

with http://drupalcode.org/project/edit.git/commitdiff/1fec4426e4c9c47c1d7990... and http://drupalcode.org/project/edit.git/commitdiff/f8310b952c495aee4f9e63...

I changed _manageDocumentFocus to be called later (app.js#l117) and did the binding in there. Unbinding is in _releaseDocumentFocusManagement.

#13

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here