Sortable: Can't click inputs inside a filtered element

Created on 28 Oct 2015  路  10Comments  路  Source: SortableJS/Sortable

question

Most helpful comment

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

All 10 comments

  1. Try dev-branch, perhaps the problem has been solved;
  2. Use the search, maybe already have an answer;
  3. If not found, create example on jsbin.com (draft) and describe the problem.

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>.

@grokys All correctly, exactly that works 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?

@ashein Looks like you can also set preventOnFilter:false in options to opt out of the event.preventDefault

Was this page helpful?
0 / 5 - 0 ratings

Related issues

garygreen picture garygreen  路  3Comments

kevinvanmierlo picture kevinvanmierlo  路  3Comments

pageYe123 picture pageYe123  路  3Comments

kinjal-codes picture kinjal-codes  路  3Comments

binitghetiya picture binitghetiya  路  4Comments