Skip to content

Commit

Permalink
fix: focus called twice / dropdown width
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr authored and risadams committed Jan 5, 2023
1 parent f36a2d9 commit bc14b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ $.extend(Selectize.prototype, {
$active = $create;
}
self.setActiveOption($active);
if (triggerDropdown && !self.isOpen) { self.open(); }
if (triggerDropdown && !self.isOpen && !self.isFocused) { self.open(); }
} else {
self.setActiveOption(null);
if (triggerDropdown && self.isOpen) { self.close(); }
Expand Down

0 comments on commit bc14b82

Please sign in to comment.