avoid setWidth without any items

This commit is contained in:
muendlein 2026-01-31 23:12:21 +01:00
commit 4b4234baaf

View file

@ -2305,7 +2305,10 @@ class Choices {
if (this._placeholderValue) {
this.input.placeholder = this._placeholderValue;
}
this.input.setWidth();
if (this._placeholderValue || this._store.items.length > 0) {
this.input.setWidth();
}
}
this._highlightPosition = 0;