From fdad24e2e4327f7985188a80a7f27a6b235e1b1a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 6 Nov 2018 11:30:12 +0100 Subject: [PATCH] FIX: edit category tags select-kit inputs width were wrong (#6568) --- .../javascripts/select-kit/components/multi-select.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/components/multi-select.js.es6 b/app/assets/javascripts/select-kit/components/multi-select.js.es6 index c27c82a51f8..c96f0033dae 100644 --- a/app/assets/javascripts/select-kit/components/multi-select.js.es6 +++ b/app/assets/javascripts/select-kit/components/multi-select.js.es6 @@ -39,7 +39,9 @@ export default SelectKitComponent.extend({ @on("didRender") _setChoicesMaxWidth() { const width = this.$body().outerWidth(false); - this.$(".choices").css({ maxWidth: width }); + if (width > 0) { + this.$(".choices").css({ maxWidth: width }); + } }, @on("didReceiveAttrs")