From 6ed8db152e3ef678cfcb31a8cfb6d89722af0654 Mon Sep 17 00:00:00 2001 From: Marco 'Lubber' Wienkoop Date: Wed, 24 Oct 2018 08:47:06 +0200 Subject: [PATCH] fix(dropdown): prevents close/open bubbling --- src/definitions/modules/dropdown.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 20404aa611..0b8bb526e3 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1671,10 +1671,7 @@ $.fn.dropdown = function(parameters) { ; if( module.can.activate( $(element) ) ) { module.set.selected(value, $(element)); - if(module.is.multiple() && !module.is.allFiltered()) { - return; - } - else { + if(!module.is.multiple()) { module.hideAndClear(); } } @@ -1687,10 +1684,7 @@ $.fn.dropdown = function(parameters) { ; if( module.can.activate( $(element) ) ) { module.set.value(value, text, $(element)); - if(module.is.multiple() && !module.is.allFiltered()) { - return; - } - else { + if(!module.is.multiple()) { module.hideAndClear(); } }