textField now saves the correct oldValue
This commit is contained in:
parent
280efdae50
commit
5459254653
|
@ -14,10 +14,6 @@ export default class Textfield extends Input {
|
|||
this.hasFocus = false;
|
||||
this.hasMouseIn = false;
|
||||
|
||||
this.input.addEventListener('keydown', () => {
|
||||
if (this.oldValue === undefined)
|
||||
this.saveOldValue();
|
||||
});
|
||||
this.input.addEventListener('keyup', e => {
|
||||
if (e.defaultPrevented || e.key != 'Escape')
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue