关于focus-trap的focusAfterReleased回掉函数的疑问 #16146
Unanswered
yanessa-yu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
element-plus/packages/components/popper/src/composables/use-focus-trap.ts
const onFocusAfterReleased = (event: CustomEvent) => {
if (event.detail?.focusReason !== 'pointer') { // 为什么这里要加上这个判断
focusStartRef.value = 'first'
emit('blur')
}
}
Beta Was this translation helpful? Give feedback.
All reactions