Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Internet Explorer, with liveSearchPlaceholder enabled, can't select option while searchBox is focused. Also, selected option doesn't get scrolled to when opening menu #2402

Closed
BrianH824 opened this issue Feb 25, 2020 · 6 comments

Comments

@BrianH824
Copy link

My drop downs work fine in Google Chrome, but if the list is long enough that there is a vertical scroll bar and the drop down is scrolled in IE, the moment an item is selected the drop down closes and the item is not selected. I am using IE 11, JQuery 3.4.1, Bootstrap 4.3.1, and Bootstrap-select 1.13.12. I've only seen this issue in IE.

@BrianH824
Copy link
Author

Additionally, I've found that this only occurs when using the live search functionality on the drop down.

@caseyjhol
Copy link
Member

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case (you can use our preconfigured Plunker), and report back with your link.

@DrorOzgaon
Copy link

DrorOzgaon commented May 20, 2020

Hello,

I have the same issue on my end. The actual bug comes from the "data-live-search-placeholder" attribute - it will not allow any items that need to be scrolled to, to be selected. It will also not display the value provided in the attribute.

You can easily reproduce the issue by just adding the following attribute to the plankr you provided:
data-live-search-placeholder="search..."
See the first dropdown here: https://plnkr.co/edit/8st1t3YhCElaJhLg

The obvious workaround for this is to remove the "data-live-search-placeholder" attribute for the time being.

@caseyjhol
Copy link
Member

caseyjhol commented May 21, 2020

Thanks for the Plunker. It looks like the option is able to be selected if you drag the scrollbar (causing the input to lose focus); it also doesn't scroll to the selected option when you re-open the menu (in IE11).

@caseyjhol caseyjhol changed the title Item cannot be selected in Internet Explorer if drop down is scrolled In Internet Explorer, with liveSearchPlaceholder enabled, selected option doesn't get scrolled to when opening menu May 21, 2020
@caseyjhol caseyjhol reopened this May 21, 2020
@caseyjhol caseyjhol changed the title In Internet Explorer, with liveSearchPlaceholder enabled, selected option doesn't get scrolled to when opening menu In Internet Explorer, with liveSearchPlaceholder enabled, can't select option while searchBox is focused. Also, selected option doesn't get scrolled to when opening menu May 21, 2020
@caseyjhol
Copy link
Member

caseyjhol commented May 21, 2020

This is happening because IE is incorrectly firing an input event when the searchbox is focused (if the searchbox has a placeholder attribute).

https://stackoverflow.com/questions/48138865/ie-11-text-input-with-placeholder-triggering-input-event-on-focus

@caseyjhol
Copy link
Member

Released in v1.13.18!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants