From 40642d3d589fbed45f567bf60db76bfae03ecfe7 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Sat, 11 Apr 2020 00:07:18 +0200 Subject: [PATCH] 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. --- src/definitions/modules/dropdown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index a418a9b620..2349f9ab8f 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -541,6 +541,7 @@ $.fn.dropdown = function(parameters) { } else if( module.can.click() ) { module.unbind.intent(); } + iconClicked = false; }, hideOthers: function() {