OverlayPanel: Toggle on list of focusable elements forces screen jump #4167
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the OverlayPanel on a list of elements, if those elements are focusable (ie buttons or anchors), then the page 'jumps' to the OverlayPanel's last target. This is really only noticeable if the first target has been scrolled off screen.
Reproducer
https://codesandbox.io/s/peaceful-dan-m35nr6?file=/src/App.vue
PrimeVue version
^3.9.1
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The screen should not jump to the location of a previous target when when an overlay is rendered on a list of focusable elements.
The text was updated successfully, but these errors were encountered: