[Bug]: Overflow Menu jumping to top of page if originally off screen #18051
Labels
component: overflow-menu
package: @carbon/web-components
@carbon/web-components
severity: 2
https://ibm.biz/carbon-severity
type: bug 🐛
Package
@carbon/web-components
Browser
Chrome
Package version
v2.16.0
React version
No response
Description
Similar to #9827, if an overflow menu in a cds-table toolbar originally appears off the bottom of the screen (requiring scrolling to reach the table), clicking the menu button causes the menu items to appear at the top left of the screen, instead of below the button.
Looking at the HTML, it appears the cds-overflow-menu-body tag starts in the correct location, but after clicking the button, the tag jumps to the very end of the body tag.
It's also worth noting that when the button works normally, the menu items are able to overflow off the right edge of the screen. Fixing this so they move left without going over might also be a good quality of life improvement.
Reproduction/example
https://stackblitz.com/edit/vitejs-vite-kkg8gx?file=index.html,main.js&terminal=dev
Steps to reproduce
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
IBM Industry Compliace PIMS Portal
Code of Conduct
The text was updated successfully, but these errors were encountered: