textfield oldValue now is called when it should
gitea/salix/test This commit looks good Details

This commit is contained in:
Gerard 2019-03-27 12:50:03 +01:00
parent 59d99db6b4
commit 05eea132cd
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default class Textfield extends Input {
this.hasMouseIn = false;
this.input.addEventListener('keydown', () => {
if (!this.oldValue)
if (this.oldValue === undefined)
this.saveOldValue();
});
this.input.addEventListener('keyup', e => {