-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create optgroup control inside the components package #17032
Comments
I would also like to see optgroup implemented for the SelectControl, perhaps when an array is supplied as the "value". See a similar discussion on the WP Customizer Controls here: I would integrate the functionality directly into the SelectControl to keep it consistent with HTML selects. |
Bumping to avoid this issue being closed by the upcoming Stalebot |
In #29540, the I would like to close this issue as I believe it was resolved, but if I have missed something, please comment. |
Just tested this in WordPress 6.2 and it appears to work perfectly! @t-hamano do you know in which Gutenberg version (or WP version) this was implemented? |
#29540 was included as part of Gutenberg 11.8. And Gutenberg 11.8 is bundled with WordPress 5.9. Perhaps it was available starting with WordPress 5.9. |
Thanks! |
In my project, I've created a custom optgroup control.
I was wondering maybe this could be a contribution to Gutenberg. The components package contains a select-control.
My considerations where:
optgroup-control
which has many similarities to theselect-control
I would love to contribute and implement this feature. Before I start, I want to make sure this would be a useful contribution.
Any feedback is welcome
The text was updated successfully, but these errors were encountered: