Skip to content

Can't click inputs inside a filtered element #629

Closed

Description

@KuroNoDev
No description provided.

Activity

  1. RubaXa commented on Nov 11, 2015

    @RubaXa
    Collaborator
    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.
  2. KuroNoDev commented on Nov 11, 2015

    @KuroNoDev
    Author

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

  3. grokys commented on Dec 11, 2015

    @grokys

    I'm also having this problem. Did anyone find a solution?

  4. grokys commented on Dec 11, 2015

    @grokys

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

  5. RubaXa commented on Dec 14, 2015

    @RubaXa
    Collaborator

    @grokys All correctly, exactly that works filter.

  6. RubaXa commented on Dec 14, 2015

    @RubaXa
    Collaborator
  7. KuroNoDev commented on Dec 14, 2015

    @KuroNoDev
    Author

    @RubaXa perfect

  8. ashein commented on Apr 4, 2016

    @ashein

    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

  9. czukowski commented on Jul 1, 2016

    @czukowski

    Perhaps event.stopPropagation() is more appropriate method to call here?

  10. inoda commented on May 17, 2017

    @inoda

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionquestions from the community

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions