Datatable Editor with Select2 4x, Tab Key Not Working

Datatable Editor with Select2 4x, Tab Key Not Working

vincmeistervincmeister Posts: 136Questions: 36Answers: 4

Hi Allan,

Since using Select2 4.x on Datatables Editor, I can't use the Tab key to navigate between field. Tab key working on background, not on the modal form.

Note: The Tab key works perfectly on Select2 3.x with Datatable Editor

Here's my link, please advise, thank you

Danny

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,880Questions: 1Answers: 10,138 Site admin

    It appears to work okay for me - I focus on the "Category" field and can then tab through each of the other fields in the form (Chrome Mac). What browser are you using? Is the Select2 version the only thing that is different? It could be a Select2 issue if so.

    Allan

  • vincmeistervincmeister Posts: 136Questions: 36Answers: 4

    Hi Allan

    I'm using chrome for windows. My problem appear after selecting the "category" field (and also for others select2 field).

    JS ver:
    Select2 4.0.3 - select2.full.js

    CSS ver
    Select2 Bootstrap Theme v0.1.0-beta.8
    Select2.min.css

  • allanallan Posts: 61,880Questions: 1Answers: 10,138 Site admin
    Answer ✓

    It appears to be a Select2 issue that was introduced in 4.0.3. I've just tried it with 4.0.1 and 4.0.2 locally and it worked no problem. When I introduced 4.0.3 (as the only change) I see the behaviour you describe.

    The Select2 release notes mention a change in their focus code, so it looks like that is the issue.

    Allan

  • vincmeistervincmeister Posts: 136Questions: 36Answers: 4

    Hi Allan,

    Thank you for the explanation, rolling back to 4.0.2, works as expected

    Danny

This discussion has been closed.