fix: use Element instead of HTMLElement
fixes #185 Should not be a breaking change since the type is broadened
Looks awesome! Thanks!
The error is on createPopper only taking an HTMLElement, which I think is incorrect, because I tested popper on SVG the other day, and I think that still works.
I think the main thing is that the element needs getBoundingClientRect and stuff, and I'm not sure if there are other types. But Element, as defined by MDN, is def too simple for popper. :thinking:
what's your use case for switching to Element? would HTMLElement | SVGElement work?
Took that approach since you mentioned it in the issue mentioned. Can try that