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

fix(menu): Auto scroll to selected menu item if necessary #812

Merged

Conversation

NicholasBoll
Copy link
Member

Fixes #808

Summary

Add scrollIntoViewIfNecessary to the MenuItem to make sure it is focused item is visible. Uses the same algorithm as the Labs select menu

Additional References

menu-item-scroll

@cypress
Copy link

cypress bot commented Jul 31, 2020



Test summary

319 0 0 0


Run details

Project canvas-kit
Status Passed
Commit c3a9c16 ℹ️
Started Aug 3, 2020 5:19 PM
Ended Aug 3, 2020 5:22 PM
Duration 02:52 💡
OS Linux Ubuntu Linux - 18.04
Browser Electron 80

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@lychyi lychyi linked an issue Aug 3, 2020 that may be closed by this pull request
@NicholasBoll NicholasBoll merged commit b79ed71 into Workday:support/v3.x Aug 3, 2020
@NicholasBoll NicholasBoll deleted the fix/menu-does-not-scroll branch August 3, 2020 17:38
@NicholasBoll NicholasBoll mentioned this pull request Jun 1, 2021
31 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu component does not support scrollIntoView (CANVAS-1084)
2 participants