You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a TextNode Element which reads a custom data attribute called editMode, based on which it shows the Text if editMode is disabled, otherwise it renders a text editor.
The problem i facing is that i cannot select or mark text using the mouse in the textfield, because it triggers the drag and drop of the entire element.
What i want to do is, only enable Drag and Drop, if editMode === false.
I already took a look at rules: { canDrag: ... }, but this only disallows the dragging of the element, but the events are still there and prevent interaction with the textfield.
Is there any way to completely disable the drag feature dynamically?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a
TextNode
Element which reads a custom data attribute callededitMode
, based on which it shows the Text if editMode is disabled, otherwise it renders a text editor.The problem i facing is that i cannot select or mark text using the mouse in the textfield, because it triggers the drag and drop of the entire element.
What i want to do is, only enable Drag and Drop, if
editMode === false
.I already took a look at
rules: { canDrag: ... }
, but this only disallows the dragging of the element, but the events are still there and prevent interaction with the textfield.Is there any way to completely disable the drag feature dynamically?
This gif demonstrates that drag and drop works fine, but i can't select text inside the component in editMode:
Does anyone have an idea on how this could be fixed?
Beta Was this translation helpful? Give feedback.
All reactions