Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contenteditable blocked by Sortable #1286

Closed
geonanorch opened this issue Feb 21, 2018 · 2 comments
Closed

contenteditable blocked by Sortable #1286

geonanorch opened this issue Feb 21, 2018 · 2 comments

Comments

@geonanorch
Copy link

geonanorch commented Feb 21, 2018

Found this issue on v1.6.0, and verified that the master branch also has the faulty code.
I searched through the issues for something similar, possibly the problem was introduced by #305.

jsbin sample here.

It seems that there is a bug in handleEvent: evt.preventDefault() is called for the event selectstart, which prevents interaction with contenteditable objects (at least on Chrome 63; Firefox 57 and IE11 are OK --though I do find Chrome's behavior more appropriate). Once I comment out evt.preventDefault() everything is fine.

Note that I had to use the delay option (and therefore as well the forceFallback option, see #659) in order for events to reach the contenteditable object contained in the Sortable target (using a handle might be another way, I haven't tried).

@owen-m1
Copy link
Member

owen-m1 commented Dec 13, 2018

Seems to work fine now.

@owen-m1 owen-m1 closed this as completed Dec 13, 2018
@geonanorch
Copy link
Author

Indeed, master now works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants