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

dragging/dropping causes desc.selectNode() call where desc is WidgetViewDesc instance #843

Open
1 task done
johanneswilm opened this issue Aug 31, 2018 · 3 comments
Open
1 task done

Comments

@johanneswilm
Copy link
Contributor

Issue details

Dragging and dropping from within the same document works fine most of the time. But at times an error is thrown here where desc is a WidgetViewDesc instance which does not have a selectNode()-method.

Steps to reproduce

Unsure. This has been found while dragging basic inline elements that are not editable themselves. Dragging seems to work fine 3/4 times.

ProseMirror version

prosemirror-view 1.5.1

Affected platforms

  • Chrome
@marijnh
Copy link
Member

marijnh commented Aug 31, 2018

Do you have a stack trace, by any chance?

@johanneswilm
Copy link
Contributor Author

Most of these line numbers will not be of interest to you. But the function names may be.

syncNodeSelection (index.js:2206)
selectionToDOM (index.js:2099)
updateState (index.js:4255)
dispatchTransaction (index.js:194)
dispatch (index.js:4464)
dispatch (dropcursor.js:14)
dragover (dropcursor.js:51)
(anonymous) (index.js:2951)
someProp (index.js:4312)
runCustomHandler (index.js:2949)
view.dom.addEventListener.view.eventHandlers.(anonymous function) (index.js:2924)

@marijnh
Copy link
Member

marijnh commented Mar 20, 2020

I never managed to reproduce this. Did you find out what caused it? Is it still happening for you?

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