SortableJS / react-sortablejs

React bindings for SortableJS
http://sortablejs.github.io/react-sortablejs/
MIT License
2.07k stars 211 forks source link

Use input within a filtered item #253

Closed werdnanoslen closed 2 years ago

werdnanoslen commented 2 years ago

Currently, if an item is filtered, the preventDefaults also prevent interaction with the item's children, such as editing an input. Is this intended? It feels like a bug to me. This may be somewhat related to this thread.

To reproduce:

  1. Make a ReactSortable with filter="#filter"
  2. Make some children, one of them with id="filter" and an <input> child
  3. Attempt to move the filtered child, and it is unmovable (as expected)
  4. Attempt to edit the filtered child's <input>, and it is not editable (not expected, should be editable)
werdnanoslen commented 2 years ago

nevermind, I used preventOnFilter="false" instead of preventOnFilter={false}, which fixed it.