Incorporate #788

This commit is contained in:
Josh Johnson 2019-12-23 18:14:41 +00:00
parent ad9a16bbff
commit 9705c4c66f

View file

@ -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;