-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Strange behaviour on "Enter" #118
Comments
Hmm, I'm having troubles reproducing this behavior. Do you have some reproducible steps you can share? When the dropdown is closed, Selectize should be clearing the active option. |
Here's the code that has the issue. http://jsfiddle.net/5Rt8X/24/ I've set It also opens up the dropdown when I remove an item. Could this be prevented? Also, unrelated to this but is there a way to not auto-select the options when the user is typing? I would like to give precedence to the "Add xxx..." item. Thanks. :) |
I still can't seem to reproduce the issue. What browser (+ version) are you using? P.s. here's an updated jsfiddle with better js / css links. Request for configurable precedence for the "Add xxx..." item noted :) I think I can fit that in 0.8. |
I've added a modified jsfiddle. Focus in the field and just press "enter". It will add the next item even when the dropdown is not visible. I tested it on Chrome and Firefox in OS X. The issue persists. Also try to remove an item and it will open up the dropdown menu, which is also a bit weird since the options Also, great that you will add precedence for "Add xxx...". 👍 |
Ah! Definite bug. I'll get that fixed up. |
Thanks a lot! Cheers. :) |
Awesome! 👍 Will you also update the dist files? |
Yep. This will be part of the 0.8.0 release with a good bunch of other improvements. It should come out in the next few days :) |
Yay! :) |
First of all, thanks for the great library.
I'm facing an issue that selectize auto-adds the active element on
enter
from the dropdown even when the dropdown is closed.Is it possible to stop this behaviour? I want it to add items on
enter
only when the dropdown is open.Thanks!
The text was updated successfully, but these errors were encountered: