We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isElement
isHTMLElement
1 parent a8cb2df commit 475af9cCopy full SHA for 475af9c
packages/@headlessui-react/src/utils/dom.ts
@@ -73,7 +73,7 @@ export function isHTMLLegendElement(element: unknown): element is HTMLLegendElem
73
// - textarea
74
// - video (if the controls attribute is present)
75
export function isInteractiveElement(element: unknown): element is Element {
76
- if (!isHTMLElement(element)) return false
+ if (!isElement(element)) return false
77
78
return element.matches(
79
'a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'
0 commit comments