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

[Joy][Menu] Scrollable menu jumps to end and back to start on load #35780

Closed
2 tasks done
Studio384 opened this issue Jan 10, 2023 · 2 comments · Fixed by #35838
Closed
2 tasks done

[Joy][Menu] Scrollable menu jumps to end and back to start on load #35780

Studio384 opened this issue Jan 10, 2023 · 2 comments · Fixed by #35838
Assignees
Labels
bug 🐛 Something doesn't work component: menu This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base package: joy-ui Specific to @mui/joy

Comments

@Studio384
Copy link
Contributor

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/k0zipv?file=/demo.tsx

Steps:

  1. Open a menu with scrollable contents.

Current behavior 😯

On load, the menu will briefly jump to the end and back to the start.

Expected behavior 🤔

The menu doesn't scroll on load.

Context 🔦

n/a

Your environment 🌎

n/a

@Studio384 Studio384 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 10, 2023
@zannager zannager added component: menu This is the name of the generic UI component, not the React module! design: joy This is about Joy Design, please involve a visual or UX designer in the process labels Jan 10, 2023
@mnajdova mnajdova assigned siriwatknp and unassigned mnajdova Jan 13, 2023
@SaidMarar
Copy link
Contributor

Hey :)
We had the same issue in our apps... i made a fix check the sandbox https://codesandbox.io/s/gracious-lalande-g2k0gk?file=/demo.js
@Studio384

@siriwatknp
Copy link
Member

siriwatknp commented Jan 17, 2023

@SaidMarar Thanks, I experienced it as well. cc @michaldudak @mj12albert This looks like a small bug in MUI Base.

From #35741:

Screen.Recording.2566-01-17.at.10.53.31.mov

@siriwatknp siriwatknp added package: base-ui Specific to @mui/base package: joy-ui Specific to @mui/joy bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer design: joy This is about Joy Design, please involve a visual or UX designer in the process labels Jan 17, 2023
@github-project-automation github-project-automation bot moved this to To do 📃 in Base UI Alpha Jan 20, 2023
@github-project-automation github-project-automation bot moved this from To do 📃 to Done 🎉 in Base UI Alpha Jan 31, 2023
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: menu This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants