Skip to content

Commit

Permalink
Fix the scrollbar in IE, fixes selectize#182
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Negri committed Jan 17, 2014
1 parent 1841f25 commit 3275c4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ $.extend(Selectize.prototype, {
self.isFocused = false;
if (self.ignoreFocus) return;

if (document.activeElement === self.$dropdown_content[0]) {
self.$control_input.focus();
return;
}

if (self.settings.create && self.settings.createOnBlur) {
self.createItem();
}
Expand Down

2 comments on commit 3275c4f

@VarunChawla
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am getting this issue on chrome. Any Solution

@dhinus
Copy link

@dhinus dhinus commented on 3275c4f Jul 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both this library and the upstream version at https://github.com/selectize/selectize.js are no longer maintained.

I would recommend finding a different library that is still actively maintained.

React-Select is a popular choice: https://github.com/JedWatson/react-select

Please sign in to comment.