Value onKeyUp now gets reset if the value changed before the keyup event fired.
This commit is contained in:
parent
ad435e7098
commit
1dae4ecece
@ -178,7 +178,11 @@ class IgniteTemplate {
|
|||||||
if (reflect != null && ((typeof (reflect) == "boolean" && reflect == true) || reflect instanceof Function)) {
|
if (reflect != null && ((typeof (reflect) == "boolean" && reflect == true) || reflect instanceof Function)) {
|
||||||
var keyUpDelay = null;
|
var keyUpDelay = null;
|
||||||
var valueChanged = () => {
|
var valueChanged = () => {
|
||||||
keyUpDelay = null;
|
if (keyUpDelay) {
|
||||||
|
clearTimeout(keyUpDelay);
|
||||||
|
keyUpDelay = null;
|
||||||
|
}
|
||||||
|
|
||||||
var newValue = null;
|
var newValue = null;
|
||||||
|
|
||||||
var type = this.element.hasAttribute("type") ? this.element.getAttribute("type").toLowerCase().trim() : null;
|
var type = this.element.hasAttribute("type") ? this.element.getAttribute("type").toLowerCase().trim() : null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user