Skip to content

Close select when click outside #5

Description

@Muskos

Hi. I'm newbie in js.
You plugin is nice, but it's don't work when i click outside. I want to hide it.
I upgrade you plugin like this:
$(document).on('click', function(e){ if(!$(e.target).closest(self.$selectionBox).length){ self.hideList(); } });
It's good solution?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions