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
This is a non-trivial bug I could reduce to the following observations:
happens when switching from one transient type of sheet to a docked sheet;
React Aria FocusScope is set to contain: false in the docked sheet (the only one with this value for the prop), in order to not block tabbing;
Immediately after switching, FocusScope is broken and will focus an element it marked itself with an attribute specifically to be ignored ( data-react-aria-prevent-focus="true" on expand button in ToC);
works fine if contain: true – this is why the bug does not happen with the bottom sheet for instance;
Close and reopen the docked sheet and it’s working as expected again, so something seems to throw it off while unmounting a different sheet and mounting the docked sheet – action state isOpen stays true;
maybe it’s a combination of contain: false and missing the reference for restoreFocus, or maybe it’s something else entirely since it’s fine the other way, or maybe it’s the expand button itself that creates this issue when it becomes focused, I can’t really tell;
even disabling the button won’t actually help.
Not sure how to handle that edge case at the moment.
The text was updated successfully, but these errors were encountered:
This is a non-trivial bug I could reduce to the following observations:
FocusScope
is set tocontain: false
in the docked sheet (the only one with this value for the prop), in order to not block tabbing;data-react-aria-prevent-focus="true"
on expand button in ToC);contain: true
– this is why the bug does not happen with the bottom sheet for instance;isOpen
staystrue
;contain: false
and missing the reference forrestoreFocus
, or maybe it’s something else entirely since it’s fine the other way, or maybe it’s the expand button itself that creates this issue when it becomes focused, I can’t really tell;Not sure how to handle that edge case at the moment.
The text was updated successfully, but these errors were encountered: