Closed JStein92 closed 5 years ago
https://github.com/retejs/rete/issues/253#issuecomment-462716901
The same for React, since this event listening by rete core
Try this:
<textarea
className={classes.text}
onChange={onChange}
onPointerMove={e => e.stopPropagation()}
/>
Yep, its working
Fantastic, thank you! It's working for me as well. You rock.
I am rendering a
<textarea>
element inside a node, and would like drag-select the text without moving the node.I have tried
stopPropagation()
on the element, but it has no effect.I have also tried targeting the nativeEvent via
nativeEvent.stopPropagation()
, to no effect.Browser:
Chrome Version 75.0.3770.80 (Official Build) (64-bit)
Thank you!