From 7e7023c680958ccc3c1ebe78d362693a3e6e4c51 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 8 Mar 2019 07:58:09 +0100 Subject: [PATCH] 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 086ab78170..b5762d0cca 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');