We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FieldDropdown
1 parent bf576d5 commit 0eec0e0Copy full SHA for 0eec0e0
1 file changed
core/field_dropdown.ts
@@ -217,11 +217,13 @@ export class FieldDropdown extends Field<string> {
217
218
// Ensure the selected item has its correct label presented since it may be
219
// different than the actual text presented to the user.
220
- aria.setState(
221
- this.getTextElement(),
222
- aria.State.LABEL,
223
- this.computeLabelForOption(this.selectedOption),
224
- );
+ if (this.textElement_) {
+ aria.setState(
+ this.textElement_,
+ aria.State.LABEL,
+ this.computeLabelForOption(this.selectedOption),
225
+ );
226
+ }
227
}
228
229
/**
0 commit comments