I can blur my input by clicking anywhere on the page except the jQuery Sortable list. How can I fix this? UPD: demo
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Take a look at the cancel option from the jquery-ui
You'll have to remove the
$("#sortable").disableSelection();
See my jsfiddle
UPDATE
I understand your problem. Because jQuery stops the default functionality of the browser when sorting a list, the blur is never called for that field. You'll have to force the field to blur.
See my jsfiddle. I use change to call the blur, you can change 'change' to 'start' if you want the blur to always happen.
To limit the handle to a specific element that is not a input solved it for me.
It is a bug of jquery sortable, which will be fixed in jqueryui 2.0.0. See Sortable: clicking a sortable item does not cause form element to blur