textField now saves the correct oldValue

This commit is contained in:
Gerard 2019-03-29 07:37:16 +01:00
parent 280efdae50
commit 5459254653
1 changed files with 0 additions and 4 deletions

View File

@ -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;