From 05eea132cdb5a3a76898195aa539eb20abcfa330 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 27 Mar 2019 12:50:03 +0100 Subject: [PATCH] textfield oldValue now is called when it should --- front/core/components/textfield/textfield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/core/components/textfield/textfield.js b/front/core/components/textfield/textfield.js index 88a585eda..8d2964b9b 100644 --- a/front/core/components/textfield/textfield.js +++ b/front/core/components/textfield/textfield.js @@ -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 => {