From c264348fcbc39aea6a0509295ed2f8e2979a4c5a Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 21 Aug 2017 18:55:44 +0200 Subject: [PATCH] FIX: avoids user-selector having no width --- app/assets/javascripts/discourse/lib/autocomplete.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/autocomplete.js.es6 b/app/assets/javascripts/discourse/lib/autocomplete.js.es6 index f738b695185..15cb6d5d937 100644 --- a/app/assets/javascripts/discourse/lib/autocomplete.js.es6 +++ b/app/assets/javascripts/discourse/lib/autocomplete.js.es6 @@ -165,7 +165,7 @@ export default function(options) { }; if (isInput) { - const width = this.width(); + const width = Math.max(this.width(), 200); if (options.updateData) { wrap = this.parent();