Here's an example: http://jsbin.com/mebihexosa/2/edit?html,js,output
I'm not able to click or edit the input text inside the filtered element (li class="filter").
I'm also having this problem. Did anyone find a solution?
The problem seems to be caused by this line:
https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L295
It's preventing the default click action from reaching the <input>.
<input>
@grokys All correctly, exactly that works filter.
filter
@KuroNoDev Why don't you do so: http://jsbin.com/relupasuto/edit?html,js,output
@RubaXa perfect
This is still applicable for me. It's the event. preventDefault() call when the filtering using a selector triggers: https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L301
Perhaps event.stopPropagation() is more appropriate method to call here?
event.stopPropagation()
@ashein Looks like you can also set preventOnFilter:false in options to opt out of the event.preventDefault
preventOnFilter:false
options
event.preventDefault
Activity
RubaXa commentedon Nov 11, 2015
KuroNoDev commentedon Nov 11, 2015
Here's an example:
http://jsbin.com/mebihexosa/2/edit?html,js,output
I'm not able to click or edit the input text inside the filtered element (li class="filter").
grokys commentedon Dec 11, 2015
I'm also having this problem. Did anyone find a solution?
grokys commentedon Dec 11, 2015
The problem seems to be caused by this line:
https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L295
It's preventing the default click action from reaching the
<input>.RubaXa commentedon Dec 14, 2015
@grokys All correctly, exactly that works
filter.RubaXa commentedon Dec 14, 2015
@KuroNoDev Why don't you do so:
http://jsbin.com/relupasuto/edit?html,js,output
KuroNoDev commentedon Dec 14, 2015
@RubaXa perfect
ashein commentedon Apr 4, 2016
This is still applicable for me. It's the event. preventDefault() call when the filtering using a selector triggers:
https://github.com/RubaXa/Sortable/blob/master/Sortable.js#L301
czukowski commentedon Jul 1, 2016
Perhaps
event.stopPropagation()is more appropriate method to call here?inoda commentedon May 17, 2017
@ashein Looks like you can also set
preventOnFilter:falseinoptionsto opt out of theevent.preventDefault