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
There are problems with text inputs inside components that have the HTML5 attribute draggable set to true in Firefox (because of this known bug). I'm working on setting draggable to false in an onFocus handler and setting it back to true in an onBlur handler (as recommended here), but react-dnd has no support for such a workaround and the attribute is immediately set back to true.
Given that there doesn't seem to be progress on this bug in FireFox, is there room for a shim in react-dnd to handle this? I'll update this issue if I come up with a good solution regardless.
The text was updated successfully, but these errors were encountered:
Please don't forget HTML5 backend is only included as a convenience.
You can publish your fixed version on NPM (it's a single file) but still use the main repo for everything else.
You should be able to work around this bug by toggling a state variable in onFocus and onBlur, and changing your render function to not call connectDragSource() during input:
render(){constelement=<div><textareaonFocus=... /></div>;returnthis.state.editing ? element : this.props.connectDragSource(element);}
There are problems with text inputs inside components that have the HTML5 attribute
draggable
set totrue
in Firefox (because of this known bug). I'm working on settingdraggable
tofalse
in anonFocus
handler and setting it back totrue
in anonBlur
handler (as recommended here), but react-dnd has no support for such a workaround and the attribute is immediately set back totrue
.Given that there doesn't seem to be progress on this bug in FireFox, is there room for a shim in react-dnd to handle this? I'll update this issue if I come up with a good solution regardless.
The text was updated successfully, but these errors were encountered: