bootstrap-select icon indicating copy to clipboard operation
bootstrap-select copied to clipboard

BS 5.1.2 Keyboard Accessibility Broken — Up / Down Arrow Key (Desktop) Not Working

Open linzswanson opened this issue 3 years ago • 4 comments

Console Error:

Uncaught TypeError: Cannot read properties of undefined (reading 'nextElementSibling') at Object.next (VM600 bootstrap.bundle.min.js:6) at Oe._getMenuElement (VM600 bootstrap.bundle.min.js:6) at new Oe (VM600 bootstrap.bundle.min.js:6) at Function.getOrCreateInstance (VM600 bootstrap.bundle.min.js:6) at HTMLUListElement.dataApiKeydownHandler (VM600 bootstrap.bundle.min.js:6) at HTMLDocument.n (VM600 bootstrap.bundle.min.js:6)

jQuery version, Bootstrap version, and bootstrap-select version.

Reproduced Here:

  • https://plnkr.co/edit/AA74u8B1DeJ1J6DB?open=lib%2Fscript.js&preview
  • Error in console

linzswanson avatar Oct 05 '21 22:10 linzswanson

Here is another sample with this issue: https://plnkr.co/edit/53lQjla5NiVGPuL0?preview

luis-fss avatar Oct 24 '21 21:10 luis-fss

Additionally, on a live search, single select dropdown, hitting Enter on an item no longer closes the dropdown. In BS4 it did. Is there an option I'm missing that would enable this behavior again?

terryaney avatar Nov 13 '21 20:11 terryaney

Hi all, does anyone have any quick fix for this? All the keyboard interactions does not seem to be working. E.g. (up/down keys for selection, enter key for selecting the dropdown, typing to search for dropdown box item). Thanks

cyclopsMZ avatar Aug 17 '22 07:08 cyclopsMZ

I have a quick fix, but it's, well, not something you'd be proud of. Does work, though. See the referenced issue comment for diagnosis of the problem and our solution for it.

@caseyjhol https://github.com/snapappointments/bootstrap-select/issues/2742#issuecomment-1236406521

bazineta avatar Sep 04 '22 20:09 bazineta