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
{{ message }}
Repository navigation
Join field: edit drawer of a row does not open again after closing it (useDocumentDrawer always reports isDrawerOpen: false) #19232
In a join field's relationship table, clicking a row opens the edit drawer. After closing it, clicking the same row again does nothing.
useDocumentDrawer (packages/ui/src/elements/DocumentDrawer/index.tsx) returns a hardcoded isDrawerOpen: false ("Not tracking isDrawerOpen to prevent re-renders"). The relationship table relies on it to reset the current document id once the drawer closes (if (!isDrawerOpen)), so the id is never reset and the drawer for that row cannot be reopened. The relationship field also uses it for backspaceRemovesValue and disableKeyDown/disableMouseDown while the drawer is open. In 3.x the value came from modalState[drawerSlug]?.isOpen.
Activity