bug restoring old value solved
This commit is contained in:
parent
4fb31f9522
commit
c3e9d0af95
|
@ -15,7 +15,7 @@ export default class Textfield extends Input {
|
||||||
this.hasMouseIn = false;
|
this.hasMouseIn = false;
|
||||||
|
|
||||||
this.input.addEventListener('keydown', () => {
|
this.input.addEventListener('keydown', () => {
|
||||||
if (!this.oldValue) {
|
if (this.oldValue === undefined) {
|
||||||
this.saveOldValue();
|
this.saveOldValue();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue