Skip to content

Commit

Permalink
Improve list select logic
Browse files Browse the repository at this point in the history
Add better support for selecting an item when a list has duplicate
values.
  • Loading branch information
grafluxe committed Jan 2, 2018
1 parent c499595 commit 3446fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dropdownizer.js
Expand Up @@ -382,7 +382,7 @@ class Dropdownize {
}

_listSelect(evt) {
if (evt.target.dataset.disabled) {
if (evt.target.dataset.disabled || evt.target === this.selectedItem.selectedTarget) {
return;
}

Expand Down

0 comments on commit 3446fa1

Please sign in to comment.