Revert to previous valid value on blur
This commit is contained in:
parent
00baaacacc
commit
d31917390c
|
@ -1567,11 +1567,7 @@ Node.prototype._getDomValue = function(silent) {
|
|||
}
|
||||
}
|
||||
catch (err) {
|
||||
this.value = undefined;
|
||||
// TODO: sent an action with the new, invalid value?
|
||||
if (silent !== true) {
|
||||
throw err;
|
||||
}
|
||||
// keep the previous (valid) value
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1913,11 +1909,7 @@ Node.prototype._getDomField = function(silent) {
|
|||
}
|
||||
}
|
||||
catch (err) {
|
||||
this.field = undefined;
|
||||
// TODO: sent an action here, with the new, invalid value?
|
||||
if (silent !== true) {
|
||||
throw err;
|
||||
}
|
||||
// keep the previous (valid) field value
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue