Skip to content

Commit

Permalink
fix(dropdown): prevent showing the whole list if showOnFocus is false
Browse files Browse the repository at this point in the history
When showOnFocus was set to false but the dropdown was opened by clicking on the down arrow icon, then a focus of the input field afterwards was opening the whole menu once, which isn't allowed.

The iconClicked value needs to be reset whenever the dropdown list gets hidden which this PR is
fixing.
  • Loading branch information
lubber-de authored Apr 10, 2020
1 parent 5261482 commit 40642d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ $.fn.dropdown = function(parameters) {
} else if( module.can.click() ) {
module.unbind.intent();
}
iconClicked = false;
},

hideOthers: function() {
Expand Down

0 comments on commit 40642d3

Please sign in to comment.