do not trigger change event(with same value) on blur if changeOnKeypress is enabled
This commit is contained in:
parent
237d12ece7
commit
c4de1a3a40
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ Ox.Input = function(options, self) {
|
||||||
// change gets invoked before blur
|
// change gets invoked before blur
|
||||||
self.options.value = self.$input.val();
|
self.options.value = self.$input.val();
|
||||||
self.originalValue = self.options.value;
|
self.originalValue = self.options.value;
|
||||||
that.triggerEvent('change', {
|
!self.options.changeOnKeypress && that.triggerEvent('change', {
|
||||||
value: self.options.value
|
value: self.options.value
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue