mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* fix(components): allow user to hide menu when clicking outside when user sets `menu-trigger` to `click` and then clicking outside, it should be close menu closed #14738 * revert settings.json config * fix: debounce hide menu when clicking out side * fix: only trigger click outside when menu is open * fix: hide parent menu * fix: only trigger close menu when its opened * refactor: remove redundant code * refactor: remove redundant code * fix(docs): `collapse-on-click-outside` prop * fix(docs): `collapse-on-click-outside` prop * fix: move `clickOutSide` to `menu.ts` * fix: submenu does not emit `close` when clicking outside * fix: submenu does not emit `close` when clicking outside * fix: ts type * fix: ts type * fix: only close when passing `props.collapseOnClickOutside` to `true` * refactor: create `directives` variable * improvement: allow `recusiveMouseInSubMenu` to receive array * refactor: remove redundant code * fix: rename `recusiveMouseInSubMenu` to `recursiveMouseInSubMenu` * feat: add `hide-timeout` prop * fix: revert code * fix: code owner * fix: coder owner * fix: menu closed when clicking on submenu * refactor: remove redundant code * fix: get correct index path * fix: build * refactor: update docs and remove `unref` * fix: change `collapseOnClickOutside` to `closeOnClickOutside` * fix: remove `hideTimeout` prop