Skip to content
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

[SpeedDial] Interaction blocked for elements underneath a hidden SpeedDial (with children). #11138

Closed
1 task done
amomentunfolding opened this issue Apr 25, 2018 · 2 comments
Labels
component: speed dial This is the name of the generic UI component, not the React module!

Comments

@amomentunfolding
Copy link

amomentunfolding commented Apr 25, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When SpeedDial is hidden, elements underneath its position should function as if the SpeedDial wasn't there at all.

Current Behavior

SpeedDial blocks interaction with elements underneath it when hidden.
This seems to happen only when the SpeedDial has children.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/rlxm5opz6n

  1. Set SpeedDial to be hidden
  2. Toggle SpeedDial child on/off and try to interact with the button underneath it.

Context

In the app we're building I have the SpeedDial set to a fixed position with some of the actions opening a Drawer component for editing settings. When the Drawer is open the SpeedDial is hidden (because they'd overlap), which because of this issue blocks some elements in the Drawer.
For now I've circumvented the issue by adding this.props.hidden ? null : <SpeedDial ....
Unfortunately this workaround makes the fancy animations disappear 😢

Your Environment

Tech Version
Material-UI [email protected]
material-ui/lab 1.0.0-alpha.1
React 16.3.2
browser FF Developer 60 / Also tried Chrome 66 with same results
@oliviertassinari oliviertassinari added package: lab Specific to @mui/lab component: speed dial This is the name of the generic UI component, not the React module! labels Apr 25, 2018
mbrookes added a commit that referenced this issue Jul 25, 2018
Also allows interaction with elements beind the actions when closed

<!-- Thanks so much for your PR, your contribution is appreciated! ❤️ -->

Closes #11138
Closes #12082
@sedelgadof
Copy link

hello friends is my first participation
only add this code in the container style={{width: this.state.open ? '' : 0}}
and the fancy animations work perfectly !!!!

@mbrookes
Copy link
Member

@sedelgadof AFAIK, this was fixed in #12241.

@oliviertassinari oliviertassinari removed the package: lab Specific to @mui/lab label Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: speed dial This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

4 participants