Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomSelectControl: Provide fallback describedBy when there's no selected item #34348

Open
Mamaduka opened this issue Aug 27, 2021 · 0 comments
Open

Comments

@Mamaduka
Copy link
Member

@Mamaduka Mamaduka commented Aug 27, 2021

Description

Currently if CustomSelectControl value is undefined component will trigger an error. The component tries to generate the describedBy 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

  1. Install and activate Quadrat theme.
  2. Go the the "Site Editor."
  3. The editor crashes and displays an error message.

Screenshots, screen recording, code snippet

CleanShot 2021-08-27 at 13 33 34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant