From 4e2f0b02911d21f96342b06a861fd0d6ed0ebe43 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 17 Feb 2015 14:26:22 -0500 Subject: [PATCH] #1794, checkbox and dropdown now trigger blur event on controlled input --- src/definitions/modules/checkbox.js | 2 ++ src/definitions/modules/dropdown.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/definitions/modules/checkbox.js b/src/definitions/modules/checkbox.js index 7478dc751..a01823ebe 100644 --- a/src/definitions/modules/checkbox.js +++ b/src/definitions/modules/checkbox.js @@ -261,6 +261,7 @@ $.fn.checkbox = function(parameters) { .trigger('change') ; module.set.checked(); + $input.trigger('blur'); settings.onChange.call($input.get()); settings.onChecked.call($input.get()); }, @@ -272,6 +273,7 @@ $.fn.checkbox = function(parameters) { .trigger('change') ; module.remove.checked(); + $input.trigger('blur'); settings.onChange.call($input.get()); settings.onUnchecked.call($input.get()); }, diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 8fae7d0ee..6c747164b 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1399,6 +1399,8 @@ $.fn.dropdown = function(parameters) { ; } + $input.trigger('blur'); + if(settings.transition == 'none') { callback.call(element); }