Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile committed Jan 25, 2025
1 parent 8ef85d3 commit ae48080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/driver/src/dom/elements/elementHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const inputTypeNeedSingleValueChangeRe = /^(date|time|week|month|datetime-local)

const valueIsNumberTypeRe = /progress|meter|li/

export const getTagName = (el: HTMLElement) => {
export const getTagName = (el) => {
const tagName = el.tagName || ''

return tagName.toLowerCase()
Expand Down
2 changes: 1 addition & 1 deletion packages/driver/src/dom/elements/find.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getAllParents = (el: HTMLElement, untilSelectorOrEl?: string | HTML
return collectParents([], el)
}

export const findParent = <R>(el: HTMLElement, condition: (parent: HTMLElement, node: HTMLElement) => R) => {
export const findParent = (el, condition) => {
const collectParent = (node) => {
const parent = getParentNode(node)

Expand Down

0 comments on commit ae48080

Please sign in to comment.