diff --git a/front/core/components/input-number/index.js b/front/core/components/input-number/index.js index 086ab78170..9c187a8151 100644 --- a/front/core/components/input-number/index.js +++ b/front/core/components/input-number/index.js @@ -55,7 +55,7 @@ export default class InputNumber extends Textfield { 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'); diff --git a/modules/item/front/index/index.js b/modules/item/front/index/index.js index e31cbaa08a..d8d0ebbe23 100644 --- a/modules/item/front/index/index.js +++ b/modules/item/front/index/index.js @@ -18,11 +18,6 @@ class Controller { this.filter = {hasVisible: true, isActive: true}; } - $postLink() { - if (this.filter) - this.onSearch(this.filter); - } - stopEvent(event) { event.preventDefault(); event.stopImmediatePropagation();