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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SwipeableDrawer] Missing close animation when initial open is true #34999

Closed
2 tasks done
xavier-villelegier opened this issue Nov 3, 2022 · 1 comment 路 Fixed by #35010
Closed
2 tasks done

[SwipeableDrawer] Missing close animation when initial open is true #34999

xavier-villelegier opened this issue Nov 3, 2022 · 1 comment 路 Fixed by #35010
Assignees
Labels
bug 馃悰 Something doesn't work component: SwipeableDrawer The React component.

Comments

@xavier-villelegier
Copy link

xavier-villelegier commented Nov 3, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 馃暪

Link to live example: https://codesandbox.io/s/dry-brook-9umj8k?file=/src/App.js

Steps:

  1. Render a SwipeableDrawer with an initial open to true
  2. Close it by clicking on the backdrop / swiping it down
  3. There isn't any animation on the closing. If you open it again, it'll work

Current behavior 馃槸

  • When the initial open is set to true, there isn't any animation when closing it
  • When opening it later (with setTimeout) or opening it manually, it works fine

Expected behavior 馃

When the SwipeableDrawer is first rendered with open to true, there is an animation when closing it

Context 馃敠

I'm trying to display a page with a SwipeableDrawer opened at the beginning, and see an animation when the user closes it

Your environment 馃寧

npx @mui/envinfo

I used Chrome.

    System:
    OS: macOS 12.6
  Binaries:
    Node: 18.11.0 - ~/.nvm/versions/node/v18.11.0/bin/node
    Yarn: Not Found
    npm: 8.19.2 - ~/.nvm/versions/node/v18.11.0/bin/npm
  Browsers:
    Chrome: 107.0.5304.87
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.0
  npmPackages:
    @emotion/react: 11.10.5 => 11.10.5
    @emotion/styled: 11.10.5 => 11.10.5
    @mui/base:  5.0.0-alpha.103
    @mui/core-downloads-tracker:  5.10.11
    @mui/icons-material: 5.10.9 => 5.10.9
    @mui/material: 5.10.11 => 5.10.11
    @mui/private-theming:  5.10.9
    @mui/styled-engine:  5.10.8
    @mui/system:  5.10.10
    @mui/types:  7.2.0
    @mui/utils:  5.10.9
    @types/react: 18.0.24 => 18.0.24
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: 4.8.4 => 4.8.4

@xavier-villelegier xavier-villelegier added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 3, 2022
@sai6855
Copy link
Contributor

sai6855 commented Nov 4, 2022

Hey mui team, if anyone you can confirm this is bug I'm willing to work on this issue

@zannager zannager added component: drawer This is the name of the generic UI component, not the React module! component: SwipeableDrawer The React component. labels Nov 4, 2022
@ZeeshanTamboli ZeeshanTamboli added bug 馃悰 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 19, 2022
@ZeeshanTamboli ZeeshanTamboli removed the component: drawer This is the name of the generic UI component, not the React module! label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 馃悰 Something doesn't work component: SwipeableDrawer The React component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants