Adding actions (edit, remove, etc.) inside SegmentedControl causes nested <button> warning #9046
-
When trying to add an ActionMenu inside a SegmentedControl item to provide actions like edit, remove, or close, I get the following warning:
Is there a supported way to add an ActionMenu or similar action triggers (edit, remove, etc.) inside a SegmentedControlItem? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For React Spectrum's SegmentedControl, this isn't supported be supported. I recommend putting them next to each other. If you wanted to build something custom with React Aria, you'd still need to have the components be adjacent but style them to be connected to each other. |
Beta Was this translation helpful? Give feedback.
For React Spectrum's SegmentedControl, this isn't supported be supported. I recommend putting them next to each other.
If you wanted to build something custom with React Aria, you'd still need to have the components be adjacent but style them to be connected to each other.