Skip to content

Commit

Permalink
fix type FieldNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Filriya committed Feb 9, 2023
1 parent d928c21 commit aa63441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit aa63441

Please sign in to comment.