Skip to content

Commit 40642d3

Browse files
authored
fix(dropdown): prevent showing the whole list if showOnFocus is false
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.
1 parent 5261482 commit 40642d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/definitions/modules/dropdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ $.fn.dropdown = function(parameters) {
541541
} else if( module.can.click() ) {
542542
module.unbind.intent();
543543
}
544+
iconClicked = false;
544545
},
545546

546547
hideOthers: function() {

0 commit comments

Comments
 (0)