From bfbda5fa3548d2cfc137b3ffce81db1fcb8115ac Mon Sep 17 00:00:00 2001 From: jlukic Date: Wed, 21 Jan 2015 14:17:34 -0500 Subject: [PATCH] Fix #1638, bubbled click event on item now only blocks callback not other events --- src/definitions/modules/dropdown.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index bb427c90f..06259b5b9 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -672,13 +672,10 @@ $.fn.dropdown = function(parameters) { module.remove.searchTerm(); module.determine.selectAction(text, value); }, - hasSubMenu = ($subMenu.length > 0), - isSubMenuItem = ($subMenu.find($target).length > 0) + hasSubMenu = ($subMenu.length > 0), + isBubbledEvent = ($subMenu.find($target).length > 0) ; - if(isSubMenuItem) { - return false; - } - if(!hasSubMenu || settings.allowCategorySelection) { + if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) { callback(); } }