[joy-ui][Toggle Button] Not working well with a tooltip #39309
Labels
component: toggle button
This is the name of the generic UI component, not the React module!
component: tooltip
This is the name of the generic UI component, not the React module!
package: joy-ui
Specific to @mui/joy
Latest version
Steps to reproduce 🕹
Here's a Code Sandbox link with buttons wrapped by tooltips within a Toggle Button container.
Current behavior 😯
When wrapping buttons inside a Toggle Button container with tooltips, they appear correctly. However, what happens then is that the selection behavior is damaged. In other words, a button doesn't stay "toggled on" after clicking on it if a tooltip wraps it.
Expected behavior 🤔
A clicked button should be "toggled on" even if it has a wrapping tooltip.
Context 🔦
As a benchmark, even though each of these components has a different interaction naturally, it seems like buttons inside a Button Group, as opposed to a Toggle Button Group, don't suffer from this problem.
The text was updated successfully, but these errors were encountered: