Skip to content

Commit aa63441

Browse files
committed
fix type FieldNode
1 parent d928c21 commit aa63441

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export const set = _set
2323

2424
export const get = _get
2525

26-
export type FieldNode = HTMLElement | null | ComponentPublicInstance
26+
export type FieldNode = Element | null | ComponentPublicInstance
2727
export const getDOMNode = (value: FieldNode) => {
28-
if (value === null || value instanceof HTMLElement) {
28+
if (value === null || value instanceof Element) {
2929
return value
3030
}
31-
return value.$el as HTMLElement
31+
return value.$el as Element
3232
}

0 commit comments

Comments
 (0)