From aa6344150a60a5ec5c7d544c436fff03ab19b1c1 Mon Sep 17 00:00:00 2001 From: Filriya Date: Thu, 9 Feb 2023 15:23:59 +0900 Subject: [PATCH] fix type FieldNode --- src/utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 1571a1f..8e21d92 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,10 +23,10 @@ export const set = _set export const get = _get -export type FieldNode = HTMLElement | null | ComponentPublicInstance +export type FieldNode = Element | null | ComponentPublicInstance export const getDOMNode = (value: FieldNode) => { - if (value === null || value instanceof HTMLElement) { + if (value === null || value instanceof Element) { return value } - return value.$el as HTMLElement + return value.$el as Element }