Replies: 1 comment 4 replies
-
HTMLElement is a class and class are functions behind the scene, so I think it makes sense that it returns functions instead of object. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use
@headlessui/react
's combobox in my app and it has this:https://github.com/tailwindlabs/headlessui/blob/03c22b42b6228d961901ec1f3c4f954dd73c2e2d/packages/%40headlessui-react/src/internal/floating.tsx#L138-L145
typeof HTMLElement
is returning "object" on the server instead of "function" like in the browser. This causes thev instanceof HTMLElement
to throw an error:I've tried upgrading the remix packages but that hasn't fixed anything. I can't reproduce this in a fresh remix app though. I'm not sure what i need to upgrade or change.
I've also tried putting this into a
.client.tsx
file but that results in completely different error:Anyone have ideas on what's going on here?
Beta Was this translation helpful? Give feedback.
All reactions