jquery-ui-touch-punch
jquery-ui-touch-punch copied to clipboard
Can't Edit Forms
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.
To fix this I used: $("input, textarea").each(function() { $(this).click(function() { $(this).focus(); }); });
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();
}
Thank you this fix worked like a charm!