Browse Source

#1794, checkbox and dropdown now trigger blur event on controlled input

pull/1785/head
jlukic 9 years ago
parent
commit
4e2f0b0291
2 changed files with 4 additions and 0 deletions
  1. 2
      src/definitions/modules/checkbox.js
  2. 2
      src/definitions/modules/dropdown.js

2
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());
},

2
src/definitions/modules/dropdown.js

@ -1399,6 +1399,8 @@ $.fn.dropdown = function(parameters) {
;
}
$input.trigger('blur');
if(settings.transition == 'none') {
callback.call(element);
}

Loading…
Cancel
Save