primereact
primereact copied to clipboard
SpeedDial: Nesting SpeedDial not working
Describe the bug
Nesting a SpeedDial component as a part of the model option's of another SpeedDial is not working properly.
In the Reproducer you can see that the nested SpeedDial is being opened when the outer SpeedDial gets clicked. Also it's not responsible and clicking on it is not closing it as well.
Reproducer
https://stackblitz.com/edit/5ikcer?file=src%2FApp.jsx
PrimeReact version
10.5.1
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
I am not sure what your design goal is with nested dial's so I will let PrimeTek answer...but a few thoughts.
- I don't think SpeedDial's were designed to be nested.
- Just from a pure UX perspective its an odd and unexpected user experience. Have you ever seen something like a Speed Dial nested on any other website out there?
Hi! I see your point I haven't seen any other site using such mechanism. Here are my reasons to want this thing:
- I need this feature for a closed business project where everyone using the project is well aware of it's functionalities.
- I am mainly using the
SpeedDialas an 'operations' column inDataTablecomponents. The thing is that there is a particularDataTablethat has so many operations that it becomes unusable. Since some of this operations are logically related to each other my idea is to group them together. Imagine the operations column is the last column of the table and it is just aSpeedDialbutton. It expands to the left and there are like 10 buttons. What I want to do is group 5 out of this 10 buttons in oneSpeedDialwhich will expand down. I agree that this is bad UX and everything, but this is how the whole system was designed so not much to do here. - I will understand if you decide that this is something that is not expected to work by design and decide to close this issue.
Thank you for your time. Wish you all the best!
No worries I totally get it. If you want to debug it it does seems strange both are responding to the same button click.