CustomSelectControl: Provide fallback describedBy
when there's no selected item
#34348
Labels
[Package] Block editor
/packages/block-editor
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
Currently if
CustomSelectControl
value isundefined
component will trigger an error. The component tries to generate thedescribedBy
value using the selected option's name. We should provide fallback value when there's no selection.A similar change should be made for the
FontAppearanceControl
component as well.Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
The text was updated successfully, but these errors were encountered: