mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
fix(popover): clickoutside not working (#1171)
* fix(cascader): fix: cascader-panel * fix click-outsie: change the capture phase * Revert "fix click-outsie: change the capture phase" This reverts commit 4f21ea4cb575693bddc7fd467e65f36d86822dc6. * 'fix(popover)' * Update index.vue Co-authored-by: vijay <vijayniubi@gmail.com>
This commit is contained in:
parent
027e0d7d03
commit
ce4f3078c0
@ -6,7 +6,6 @@ import { renderPopper, renderTrigger, renderArrow } from '@element-plus/popper'
|
||||
import { ClickOutside } from '@element-plus/directives'
|
||||
import { warn } from '@element-plus/utils/error'
|
||||
import { renderBlock, renderIf, PatchFlags } from '@element-plus/utils/vnode'
|
||||
import { stop } from '@element-plus/utils/dom'
|
||||
import usePopover, { SHOW_EVENT, HIDE_EVENT } from './usePopover'
|
||||
|
||||
import type { PropType } from 'vue'
|
||||
@ -111,8 +110,6 @@ export default defineComponent({
|
||||
const _trigger = trigger ? renderTrigger(trigger, {
|
||||
ariaDescribedby: popperId,
|
||||
ref: 'triggerRef',
|
||||
onMouseDown: stop,
|
||||
onMouseUp: stop,
|
||||
...events,
|
||||
}) : createCommentVNode('v-if', true)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user