-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[TreeView] Jumpy focus when content higher than the browser content's height #10234
Comments
Yeap, we fixed mui/material-ui#24096 with an API that is not supported by Safari, so we didn't solve the problem in reality. https://caniuse.com/mdn-api_htmlelement_focus_options_preventscroll_parameter A different bug that I have just noticed, when using the Arrow keys to move the focus, the page doesn't scroll. We might want to revert mui/material-ui#21695. |
@idrakimuhamad Does this happen on both Edge and Safari? |
I haven't tested it before, but I just tried it on Edge -- seems it's not happening on Edge. |
@idrakimuhamad so if we understand it correctly, your bug report is for Safari v14.1.2? |
Yes, for the 2 browsers I have, only happened in Safari. |
Any Update on this issue? I've tested on later versions of Safari(15.4), and it was working, but on Safari 14.1.2. |
Hi @oliviertassinari, I get the same unexpected behavior regarding the Arrows keys that doesn't scroll the component. is it a know issue? thanks |
How did we do @idrakimuhamad? |
Current behavior 😯
I'm facing an issue with
TreeView
andTreeItem
, it happened when theTreeView
are expanded larger than the browser height. For certainTreeItem
, it requires 2 click to expand/collapse the row. But certain will not expand, and keep on jumping out of focus, and you need to place the section at certain area to be able to expand it.This seems to be the same as #24096 however it still happened in my case.
Currently, I've patched the
TreeItem.js
to stop thehandleFocus
from running anything within. I don't think I need the focus anyway so that's the workaround, as there're no way to overwrite theTreeItem
'sonFocus
for now.Expected behavior 🤔
I expect it to not jump to the top of the page, and just expand the
TreeItem
Steps to reproduce 🕹
Steps: I've created a sandbox replicating this issue at the link below.
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: