mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-18 05:26:35 +02:00
Incorporate #788
This commit is contained in:
parent
ad9a16bbff
commit
9705c4c66f
|
@ -2371,7 +2371,10 @@ class Choices {
|
|||
}
|
||||
|
||||
_generatePlaceholderValue(): string | null {
|
||||
if (this._isSelectElement) {
|
||||
if (
|
||||
this._isSelectElement &&
|
||||
(this.passedElement as WrappedSelect).placeholderOption
|
||||
) {
|
||||
const { placeholderOption } = this.passedElement as WrappedSelect;
|
||||
|
||||
return placeholderOption ? placeholderOption.text : null;
|
||||
|
|
Loading…
Reference in a new issue