mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
fix(time-picker): type error
This commit is contained in:
parent
edc0a4f972
commit
f2deb6883f
@ -386,7 +386,7 @@ export default defineComponent({
|
||||
}
|
||||
function isInternalFocusSwitch (e: FocusEvent): boolean {
|
||||
return !!(
|
||||
inputInstRef.value?.wrapperElRef.contains(e.relatedTarget as Node) ||
|
||||
inputInstRef.value?.wrapperElRef?.contains(e.relatedTarget as Node) ||
|
||||
panelInstRef.value?.$el.contains(e.relatedTarget as Node)
|
||||
)
|
||||
}
|
||||
@ -398,7 +398,7 @@ export default defineComponent({
|
||||
function handleClickOutside (e: MouseEvent): void {
|
||||
if (
|
||||
activeRef.value &&
|
||||
!inputInstRef.value?.wrapperElRef.contains(e.target as Node)
|
||||
!inputInstRef.value?.wrapperElRef?.contains(e.target as Node)
|
||||
) {
|
||||
closePanel({
|
||||
returnFocus: false
|
||||
|
Loading…
Reference in New Issue
Block a user