-
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
Dropdown: always toggles ON when toggle button is clicked in FireFox or Safari on macOS #29746
Comments
@StevenDufresne, I've taken the liberty to expand the scope of this issue a bit. The root of it is in |
@StevenDufresne can you confirm that this is the same problem as described in the following feedback from the sixth call for testing for the FSE Outreach Program?
It seems to only occur in Safari as I can't replicate in Chrome but, since this doesn't show a specific block, I wanted to be sure. Happy to open a new issue if not. Here are visuals for both Safari and Chrome:
|
@annezazu, in the case of the Duotone button/popover, it's not strictly the same because it does not utilize the Similar to the Duotone control there are a few other ad hoc dropdown-like components that don't toggle as they should (#27406) and I am pretty sure there is no issue for any of them. Perhaps a tracking issue for all of them would be good. |
Description
When using the Dropdown or Dropdown Menu components, clicking the toggle button always toggles into the
is-opened
state in FireFox and Safari on macOS. This behaviour is different when using Chrome, where the component toggles open/closed when the button is clicked.Step-by-step reproduction instructions
Dropdown
orDropdownMenu
components as described in the documentation (https://developer.wordpress.org/block-editor/reference-guides/components/dropdown-menu/#usage-2)Expected behavior
When the toggle button is clicked, the component should assume the opposite state.
Screen recording
This screen recording uses Storybook but the issue was also seen in a separate plugin.
WordPress information
The text was updated successfully, but these errors were encountered: