You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My scenario:
I have a modal with a Command component as a child in my react app. When I open the modal, the scroll starts a a position where the Command component is visible.
I discovered that this issue is caused specifically by the CommandItem component.
I have tried to disable autoFocus, focus on some other element, etc. None of I've tried has solved the problem, except removing the CommandItem component from the DOM until the parent component is mounted.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
My scenario:
I have a modal with a Command component as a child in my react app. When I open the modal, the scroll starts a a position where the Command component is visible.
I discovered that this issue is caused specifically by the CommandItem component.
I have tried to disable autoFocus, focus on some other element, etc. None of I've tried has solved the problem, except removing the CommandItem component from the DOM until the parent component is mounted.
Is there any other way to stop this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions