You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected result:
Reaching the end of the fields without any options being selected.
Actual result:
The first option is always selected. In the last select, which is a multiple select, all of the options get selected.
Hey! I'm not 100% sure that this is a bug, but it is behavior I think should be fixed. The problem is if you have selectOnTab set to true, and you tab through a bunch of selects, the first option will be selected when I don't fill anything in and press tab. If I don't input anything and press tab, it should just move on to the next input without selecting anything. My use case is that I have clients that have big forms with lots of fields, but most of them are optional. They want to be able to quickly tab through the form, filling in only the inputs that they want. https://jsfiddle.net/zc0bjqkx/
The text was updated successfully, but these errors were encountered:
selectize.js v0.12.2 (which currently is the only version with tab-functions that work - see #1164 and #1464). Change line 1593 in standalone version and line 957 in src version from:
if (self.settings.selectOnTab && self.isOpen && self.$activeOption) {
To: if (self.settings.selectOnTab && self.isOpen && self.$activeOption && (self.lastValue !== '')) {
It's the line just below: case KEY_TAB:
Then you can tab through new and already filled out selectizes without messing them up.
(in v0.12.6 code is the same, but line numbers are 1022 and 1658 for src and standalone version respectively.)
closing stale issues older than one year.
If this issue was closed in error please message the maintainers.
All issues must include a proper title, description, and examples.
Uh oh!
There was an error while loading. Please reload this page.
I did:
(or gave a link to a demo on the Selectize docs)
like below
Steps to reproduce:
Expected result:
Reaching the end of the fields without any options being selected.
Actual result:
The first option is always selected. In the last select, which is a multiple select, all of the options get selected.
Hey! I'm not 100% sure that this is a bug, but it is behavior I think should be fixed. The problem is if you have selectOnTab set to true, and you tab through a bunch of selects, the first option will be selected when I don't fill anything in and press tab. If I don't input anything and press tab, it should just move on to the next input without selecting anything. My use case is that I have clients that have big forms with lots of fields, but most of them are optional. They want to be able to quickly tab through the form, filling in only the inputs that they want.

https://jsfiddle.net/zc0bjqkx/
The text was updated successfully, but these errors were encountered: