Feature Request: scrollIntoViewOptions prop for overlay components
#4270
Unanswered
christian-byrne
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am building https://github.com/comfyanonymous/ComfyUI which uses an infinite canvas. In applications with custom scroll handling (infinite canvas, virtual scrolling), PrimeVue overlay components' scrollIntoView behavior causes unwanted horizontal scrolling. The scroll position in these apps has special meaning which makes it difficult when it is modified by UI components.
What about a
scrollIntoViewOptionsprop on overlay components?This would allow developers to customize or disable the scrollIntoView behavior when needed, while preserving the current default behavior for accessibility.
Alternatives I considered:
Element.prototype.scrollIntoView(works but not ideal)autoOptionFocus: false(doesn't prevent the scrollIntoView call)Additional context
I understand this is a niche use case and the current behavior is important for keyboard accessibility. This prop would be rarely used but would provide an escape hatch for applications with special scroll handling requirements.
Affected components: Select, MultiSelect, TreeSelect, AutoComplete, CascadeSelect, ContextMenu, TieredMenu, Menubar, MegaMenu, PanelMenu
Related to primefaces/primevue#7243 and primefaces/primevue#7244
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions