mirror of
https://github.com/Choices-js/Choices.git
synced 2026-03-14 14:45:47 +01:00
avoid setWidth without any items
This commit is contained in:
parent
17f03faee1
commit
4b4234baaf
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue