From d36e859a9de961675649f9b65cd8d9435f517bae Mon Sep 17 00:00:00 2001 From: aswinkumar863 <32381261+aswinkumar863@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:18:04 +0530 Subject: [PATCH] Fixed number input value does not persist when using up/down arrows, Fixes #6012 (#6013) Fixed number input value does not persist when using up/down arrows --- src/domain_abstract/ui/InputNumber.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain_abstract/ui/InputNumber.ts b/src/domain_abstract/ui/InputNumber.ts index 47937b342..1c2973364 100644 --- a/src/domain_abstract/ui/InputNumber.ts +++ b/src/domain_abstract/ui/InputNumber.ts @@ -140,7 +140,7 @@ export default class InputNumber extends Input { upArrowClick() { const { model } = this; const step = model.get('step'); - let value = parseFloat(model.get('value')); + let value = parseFloat(this.getInputEl().value); this.setValue(this.normalizeValue(value + step)); this.elementUpdated(); } @@ -151,7 +151,7 @@ export default class InputNumber extends Input { downArrowClick() { const { model } = this; const step = model.get('step'); - const value = parseFloat(model.get('value')); + const value = parseFloat(this.getInputEl().value); this.setValue(this.normalizeValue(value - step)); this.elementUpdated(); }