From 7e7023c680958ccc3c1ebe78d362693a3e6e4c51 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:58:09 +0100 Subject: [PATCH 1/2] validation disabled when displaycontrols is false --- front/core/components/input-number/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/front/core/components/input-number/index.js b/front/core/components/input-number/index.js index 086ab7817..b5762d0cc 100644 --- a/front/core/components/input-number/index.js +++ b/front/core/components/input-number/index.js @@ -52,10 +52,11 @@ export default class InputNumber extends Textfield { } validateValue() { + console.log(this.displayControls); if ((this.validate() !== undefined && !this.validate()) || (this.max && this.value > this.max) || (this.min && this.value < this.min) || - (this.step && this.value % this.step != 0)) + (this.displayControls && (this.step && this.value % this.step != 0))) this.$element[0].querySelector('.infix').classList.add('invalid', 'validated'); From f5a95d31909360dcf73f983faee363f7f28b8a06 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:58:46 +0100 Subject: [PATCH 2/2] console log deleted --- front/core/components/input-number/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/front/core/components/input-number/index.js b/front/core/components/input-number/index.js index b5762d0cc..9c187a815 100644 --- a/front/core/components/input-number/index.js +++ b/front/core/components/input-number/index.js @@ -52,7 +52,6 @@ export default class InputNumber extends Textfield { } validateValue() { - console.log(this.displayControls); if ((this.validate() !== undefined && !this.validate()) || (this.max && this.value > this.max) || (this.min && this.value < this.min) ||