bug restoring old value solved

This commit is contained in:
gerard 2018-09-17 14:31:43 +02:00
parent 4fb31f9522
commit c3e9d0af95
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();
}
});