Menu: Fix RadioItem controlled checked state#76041
Conversation
|
Size Change: +5 B (0%) Total Size: 6.87 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
tyxla
left a comment
There was a problem hiding this comment.
This tests well 👍
I also verified that the Menu story with radios works well (/?path=/story/components-menu--with-radios).
Lastly, can this use a unit test before merging?
mirka
left a comment
There was a problem hiding this comment.
Confirmed that this doesn't happen with checkbox items 👍
Reported upstream at ariakit/ariakit#5483
6b5c7f7 to
7a9c5d1
Compare
|
Thanks for taking a look, folks!
With the upstream fix, I believe my original fix is no longer necessary? So I converted this PR into simply updating @tyxla @mirka given that this PR changed significantly, would you like to take another look? |
|
Flaky tests detected in 285725c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22752549953
|
RadioItem controlled checked state
mirka
left a comment
There was a problem hiding this comment.
I agree we no longer need a test, there's no integration on our end. Let's remove 👍
| ], | ||
| "dependencies": { | ||
| "@ariakit/react": "^0.4.21", | ||
| "@ariakit/react": "^0.4.22", |
This reverts commit 7a9c5d1.
What?
In DataViews, the checked status of a menu option might be reset from a separate menu. Ie, sorting by Column A should reset the 'checked' status of sorting menu items from Column B. This is fixed in
@ariakit/react0.4.22, so this PR updates the package.Testing Instructions
Note: in the screenshot above, notice that the table is currently sorted by Title, so the sorting options in the Categories columns should both look as not checked.