assets/javascripts/semantic_ui/definitions/modules/dropdown.js in less-rails-semantic_ui-2.0.6.0 vs assets/javascripts/semantic_ui/definitions/modules/dropdown.js in less-rails-semantic_ui-2.0.7.0

- old
+ new

@@ -893,11 +893,11 @@ toggle: function(event) { var toggleBehavior = (module.is.multiple()) ? module.show : module.toggle - ; + ; if( module.determine.eventOnElement(event, toggleBehavior) ) { event.preventDefault(); } }, touch: function(event) { @@ -1295,10 +1295,11 @@ } }, eventOnElement: function(event, callback) { var $target = $(event.target), - notOnLabel = ($target.closest(selector.siblingLabel).length === 0), + $label = $target.closest(selector.siblingLabel), + notOnLabel = ($module.find($label).length === 0), notInMenu = ($target.closest($menu).length === 0) ; callback = $.isFunction(callback) ? callback : function(){}