mirror of https://github.com/usememos/memos.git
- Create useDropdownMenuSubHoverDelay hook in dropdown-menu component - Encapsulates hover delay behavior for preventing accidental submenu closure - Eliminates code duplication at component usage sites - Simplifies InsertMenu by removing 45 lines of timeout/state management code - Hook provides handleTriggerEnter/Leave and handleContentEnter/Leave handlers - Configurable closeDelay parameter (default 150ms) This makes the hover behavior pattern reusable across any dropdown menu submenus. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| biome.json | ||
| components.json | ||
| index.html | ||
| package.json | ||
| pnpm-lock.yaml | ||
| tsconfig.json | ||
| vite.config.mts | ||