New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Categories dropdown should close when clicked elsewhere #143

Closed
icemangoa opened this Issue Jan 22, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@icemangoa

icemangoa commented Jan 22, 2016

Hi, first of all THANK YOU SO MUCH for taking the time to make and share something like this. It really helps out.

Now, my question to you: is there a way to close the categories drop-down once the user has clicked somewhere else on her screen?

I thought of something like this >
callback: {
onMouseLeave: function (node, a, item, event) {
$(div).find(".typeahead-container").removeClass("filter");
}
}

But, naturally, it didn't do the trick :) If and when you have the time, please let me know if I can solve this easily.

Thank you again. Greetings.

@running-coder

This comment has been minimized.

Owner

running-coder commented Jan 22, 2016

Hey Bill, thanks for the kind words! Sharing the plugin allows it to be better from the feedbacks :)

Regarding your issue, is it when dropdownFilter: true option is activated right? It was behaving like this in the earlier version, I might have broke it trying to optimize the code.

Thanks for raising the issue!

@running-coder

This comment has been minimized.

Owner

running-coder commented Jan 22, 2016

Should be good on develop branch

@icemangoa

This comment has been minimized.

icemangoa commented Jan 23, 2016

It is! Thank you again so much for taking the time not only to fix it, but to do it so quickly too. This might sound corny, but I've gotta say: you're helping, makes the world a better place. Thank you again, greetings!

@icemangoa icemangoa closed this Jan 23, 2016

@running-coder

This comment has been minimized.

Owner

running-coder commented Jan 23, 2016

yw, glad it helped!

running-coder pushed a commit that referenced this issue Feb 2, 2016

tom bertrand
Version 2.3.3
Fixed #143 Missing dropdownFilter hide when clicking outside
Fixed #144 The hint doesn't overlap with the input text when the text is too long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment