fix(time-picker): type error

This commit is contained in:
07akioni 2021-03-28 20:17:14 +08:00
parent edc0a4f972
commit f2deb6883f

View File

@ -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