fix(profile): keep desktop user-room-profile pane open on outside clicks, close only via × or Esc
This commit is contained in:
parent
e3e61afd4c
commit
ab6c65a4e0
1 changed files with 6 additions and 5 deletions
|
|
@ -58,11 +58,12 @@ export function RoomViewProfileSidePanel() {
|
||||||
<FocusTrap
|
<FocusTrap
|
||||||
focusTrapOptions={{
|
focusTrapOptions={{
|
||||||
initialFocus: false,
|
initialFocus: false,
|
||||||
// Click outside (on the chat) closes the pane on desktop —
|
// Outside clicks pass through to the chat (`allowOutsideClick`)
|
||||||
// matches the «third screen» mental model where the side
|
// but don't close the pane — clicking around in the chat to
|
||||||
// pane is a temporary overlay, not pinned chrome. `Esc` also
|
// scroll, react, or compose shouldn't dismiss the profile.
|
||||||
// closes via focus-trap.
|
// Explicit close is via the header's `×` or `Esc` (the latter
|
||||||
clickOutsideDeactivates: true,
|
// still routes through focus-trap → `onDeactivate`).
|
||||||
|
clickOutsideDeactivates: false,
|
||||||
allowOutsideClick: () => true,
|
allowOutsideClick: () => true,
|
||||||
escapeDeactivates: stopPropagation,
|
escapeDeactivates: stopPropagation,
|
||||||
onDeactivate: () => {
|
onDeactivate: () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue