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