mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Replace useClickAway + fixed positioning in file tree context menu with a floating-ui based hook that provides collision detection (flip/shift), ARIA role="menu", Escape/outside-click dismiss, and scroll dismiss via passive capture listener with ref-stabilized callback. |
||
|---|---|---|
| .. | ||
| index.spec.tsx | ||
| index.stories.tsx | ||
| index.tsx | ||
| use-context-menu-floating.spec.tsx | ||
| use-context-menu-floating.ts | ||