Click on jQuery Sortable list does not blur input

I can blur my input by clicking anywhere on the page except the jQuery sort list. How can i fix this? UPD: demo

+5
source share
4 answers
$('sortable').mousedown(function(){
  document.activeElement.blur();
});
+5
source

Take a look at the cancel option from jquery-ui

   $("#sortable").sortable(cancel: 'input');

You need to remove $("#sortable").disableSelection();

See my jsfiddle

UPDATE

I understand your problem. Since jQuery stops the default browser functionality when sorting the list, blurring is never called for this field. You will have to make the field blur.

jsfiddle. , , "change" "start", , .

+3

This is a jquery sorting error that will be fixed in jqueryui 2.0.0. See Sorting: clicking on a sortable element does not blur the form element

+1
source

To limit the descriptor to a specific element that is not its contents, resolved it for me.

+1
source

All Articles