Choices: IE11 - Single select

Created on 17 Aug 2016  路  6Comments  路  Source: Choices-js/Choices

Hi!
Not necessarily a bug, but a difference in behavior than other browsers - when selecting a single-select in IE11, the dropdown remains open, compared to Chrome, Firefox, and Safari (latest) it's closed on selection. I'll see if I can spot anything unless you come across anything quicker. Thanks!

bug

Most helpful comment

Thanks for highlighting this - it's a bug. I'll look into this ASAP.

All 6 comments

It looks like IE11 doesn't like const hasActiveDropdown = this.dropdown.classList.contains(this.config.classNames.activeState); in assets/scripts/src/choices.js => _onBlur. Continuing to look.

It appears to be working on the second click to your selection (can be the same or a different one)

Thanks for highlighting this - it's a bug. I'll look into this ASAP.

If anybody has any ideas on why this is happening I'd be keen to know! It seems to be something to do with the ordering of blur/focus events but I'm not sure

As of version 2.0.0 this has now been resolved. The problem was to do with the ordering of focus/blur events. Now if you focus a single select element the dropdown will not open; the dropdown will only open if you press the enter/up/down key or click it. Funnily enough, this is the same behaviour as normal select boxes (yay!).

Thanks for the heads up!

Awesome, thanks for looking into this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NetanelBasal picture NetanelBasal  路  6Comments

ckotzbauer picture ckotzbauer  路  5Comments

mpreziuso picture mpreziuso  路  3Comments

sebastien-roch picture sebastien-roch  路  3Comments

ryanbuening picture ryanbuening  路  4Comments