Can't Edit Forms #21

Open
sandymcfadden opened this Issue Jan 13, 2012 · 4 comments

Comments

Projects
None yet
5 participants

If I have a form element inside a draggable area I can't edit it. I'm unable to click inside the form element.

I can click (touch) into a text area but there's no way of navigating within it. If I click at the end of the text the caret remains at the first position.

senhor8 commented May 29, 2012

To fix this I used:
$("input, textarea").each(function() {
$(this).click(function() {
$(this).focus();
});
});

uniwiz commented Sep 13, 2012

senhor8's solution worked perfectly. Thanks!

Change in _jquery.ui.touch-punch.js_ worked for me.
JS: jquery.ui.touch-punch.js
Method to modify:

    //line: 31    
    function simulateMouseEvent(event, simulatedType) {
     //...
    }
    //changes to add ++
    if ($(event.target).is("input") || $(event.target).is("textarea")) {
        return;
    } else {
        event.preventDefault();
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment