fix: Don't filter out falsey input values when generating ARIA labels. (#9439)

This commit is contained in:
Aaron Dodson
2025-10-27 10:35:07 -07:00
committed by GitHub
parent 4f475c7302
commit ae3a610ba5

View File

@@ -191,7 +191,7 @@ export abstract class FieldInput<T extends InputTypes> extends Field<
const element = this.getFocusableElement();
const label = [this.getValue(), this.getAriaName()]
.filter((item) => !!item)
.filter((item) => item !== null)
.join(', ');
aria.setState(element, aria.State.LABEL, label);