This repository was archived by the owner on Jun 18, 2018. It is now read-only.
This repository was archived by the owner on Jun 18, 2018. It is now read-only.
TextArea inside dragable content not working in IE #13
Closed
Description
Hello,
I have problem with IE, when I want to edit textArea text inside dragable content it does not working.
HTML5Backend.prototype.handleSelectStart = function handleSelectStart(e) {
// Prevent selection on IE
// and instead ask it to consider dragging.
if (typeof e.target.dragDrop === 'function') {
e.preventDefault();
e.target.dragDrop();
}
};
When I comment this code it is working. Is here some solution to this issue? Thank you
edit: something like this is working, but is it correct way?
HTML5Backend.prototype.handleSelectStart = function handleSelectStart(e) {
if (e.target.nodeName === 'TEXTAREA') {
return;
}
// Prevent selection on IE
// and instead ask it to consider dragging.
if (typeof e.target.dragDrop === 'function') {
e.preventDefault();
e.target.dragDrop();
}
};
edit: I am trying it with this component: https://github.com/andreypopp/react-textarea-autosize
Metadata
Metadata
Assignees
Labels
No labels