diff --git a/core/field_dropdown.ts b/core/field_dropdown.ts index de6f6f517..7b6e8d5e8 100644 --- a/core/field_dropdown.ts +++ b/core/field_dropdown.ts @@ -217,11 +217,13 @@ export class FieldDropdown extends Field { // Ensure the selected item has its correct label presented since it may be // different than the actual text presented to the user. - aria.setState( - this.getTextElement(), - aria.State.LABEL, - this.computeLabelForOption(this.selectedOption), - ); + if (this.textElement_) { + aria.setState( + this.textElement_, + aria.State.LABEL, + this.computeLabelForOption(this.selectedOption), + ); + } } /**