Skip to content

Commit

Permalink
fixes #741 - Clicking on The Drop-Down Scroll Closes the Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed Feb 13, 2021
1 parent 4ed6b41 commit a373a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parts/dropdown.js
Expand Up @@ -376,7 +376,7 @@ export default {
},

onClick(e){
if( e.button != 0 || e.target == this.DOM.dropdown ) return; // allow only mouse left-clicks
if( e.button != 0 || e.target == this.DOM.dropdown || e.target == this.DOM.dropdown.content ) return; // allow only mouse left-clicks

var listItemElm = e.target.closest(this.settings.classNames.dropdownItemSelector)

Expand Down

0 comments on commit a373a02

Please sign in to comment.