Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

TextArea inside dragable content not working in IE #13

Closed
vavdav opened this issue Jan 8, 2016 · 0 comments
Closed

TextArea inside dragable content not working in IE #13

vavdav opened this issue Jan 8, 2016 · 0 comments

Comments

@vavdav
Copy link

vavdav commented Jan 8, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant