A platform for community discussion. Free, open, simple.
FIX: edit category tags select-kit inputs width were wrong (#6568)
Joffrey JAFFEUXfdad24e2e432
diff --git a/app/assets/javascripts/select-kit/components/multi-select.js.es6 b/app/assets/javascripts/select-kit/components/multi-select.js.es6index 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")