Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

Hitting Tab won't jump to next field (regression in 0.12.3) #1164

Closed

Description

@sturchyn

Hi,

the behaviour on KEY_TAB is broken in the version 0.12.3.

Here examples to reproduce it:

selectize 0.12.2 (works)
https://jsfiddle.net/sturchyn/b961qfjk/

selectize 0.12.3 (doesn't work)
https://jsfiddle.net/sturchyn/vyggj6oz/

(Given a Selectize with option selectOnTab:true)

Steps to reproduce:

  1. Set focus on the select box.
  2. Select the option 'B'.
  3. Press the key 'TAB'.

Expected result:

  • The option 'B' is selected.
  • The select box is closed.
  • The cursor jumps to the next input field.

Actual result (with 0.12.3):

  • The option 'B' is selected.
  • The select is open.
  • The focus is on the select box.

Many thanks for Selectize :-)

Best regards
Stanislav

Activity

  1. joallard commented on Oct 1, 2016

    @joallard
    Member

    Indeed, great report, thanks!

  2. added this to the 0.12.5 milestone on Oct 1, 2016
  3. changed the title [-]no jumping to the next field if selectOnTab:true[/-] [+]Hitting Tab won't jump to next field (regression in 0.12.3)[/+] on Oct 1, 2016
  4. hupf commented on Dec 5, 2016

    @hupf
    Contributor

    This regression has been introduced by the following change in #1127:
    d7015c9#diff-6cee306935e9c39b0f577d4ccb04fadeR1744

    If you comment this line, the tab behavior works as expected.

    Any idea how we can fix the iOS issue without breaking the default tab behavior?

  5. joallard commented on Dec 5, 2016

    @joallard
    Member

    @hupf If you get around to a PR, do mention me, I've checked out of notifications but this seems like a priority.

  6. hupf commented on Dec 6, 2016

    @hupf
    Contributor

    Here's my pull request: #1215

  7. added a commit that references this issue on Dec 6, 2016
  8. joallard commented on Dec 6, 2016

    @joallard
    Member

    Merged

  9. copperx commented on Jun 3, 2017

    @copperx

    The issue is still present in 0.12.4 when using the following options

                create: false, 
                preload: true,
                selectOnTab: true,
                sortField: 'name',
    

    and having onChange, render, and load callbacks.

    I've gone back to 0.12.2 to avoid the issue.

  10. Elias-Serneels commented on Oct 25, 2017

    @Elias-Serneels

    Just commenting to confirm this issue in 0.12.4 on firefox and IE using following options:

    closeAfterSelect: true,
    maxItems: 1,
    persist: false, // setting this to true has same problem.
    create: someFunction
    

    reverting to 0.12.2 solved this particular issue but one issue on firefox remained: tabbing from a selectize field to a regular input field kept focusing back to the selectize field.

    This last issue was solved by incrementally setting the tabindex of each input field every time a form is shown:
    $("#" + wrapperId + " :input:not(:hidden)").each(function (i) {$(this).attr('tabindex', i + 1); });

  11. added a commit that references this issue on Dec 18, 2017
    e650940
  12. ChurnM4c commented on Jan 26, 2018

    @ChurnM4c

    Hi @joallard is there any chance that this issue will be resolved in the near future? Would be awesome.

    Cheers

  13. Calytic commented on Aug 14, 2018

    @Calytic

    Still can't tab out of a selectize input.

  14. AndyThayer commented on Aug 22, 2018

    @AndyThayer

    Same issue in Firefox 61.0.1 (64-bit). Can't tab past the selectize.

  15. added a commit that references this issue on Aug 28, 2018
    bfb0969
  16. h0jeZvgoxFepBQ2C commented on Nov 23, 2018

    @h0jeZvgoxFepBQ2C

    Please release a new version with this fix included!

  17. added a commit that references this issue on Jan 17, 2021
  18. added a commit that references this issue on Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions