-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
🐛 Bug Report
When trying to use a DialogTrigger and TooltipTrigger, the dialog does not open.
🤔 Expected Behavior
If I wrap an ActionButton with a TooltipTrigger and use it in a DialogTrigger, both the tooltip and dialog should work. This behavior worked before React Spectrum v3.9
😯 Current Behavior
Right now, only the tooltip shows. The dialog cannot be triggered.
This codesandbox shows how the behavior worked using v3.8 and if the react-spectrum version is adjusted to v3.9+, you can see the functionality breaks.
💁 Possible Solution
🔦 Context
Our UI is mostly buttons triggering dialogs. Most of our buttons are icon-only. As such, they require tooltips per Spectrum guidelines. Since using a DialogTrigger with a TooltipTrigger does not work, we've had to hack around it by using DialogContainers.
💻 Code Sample
🌍 Your Environment
| Software | Version(s) |
|---|---|
| react-spectrum | 3.15 |
| Browser | |
| Operating System |
🧢 Your Company/Team
Adobe Edge Certificate Service
🕷 Tracking Issue (optional)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status