Don't trigger unnecessary change events.
This commit is contained in:
parent
16fc4dfd1a
commit
56e064bd09
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@
|
|||
} else {
|
||||
self.element.val(tmp);
|
||||
}
|
||||
if(self.element.val().trim() != '') {
|
||||
self.element.trigger('change'); // Changes wasn't saved when only using the dropdown.
|
||||
}
|
||||
});
|
||||
this.element.bind( "keydown", function( event ) {
|
||||
if ( event.keyCode === $.ui.keyCode.TAB &&
|
||||
|
|
Loading…
Reference in a new issue