You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@solid-primitives/mouse currently restricts the target to be (an accessor of) HTMLElement | Window | Document. I'd like the typings to include SVGSVGElement (and maybe all/more of SVGElement), which works fine in my testing.
Suggest A Solution
The docstring actually says Element instead of HTMLElement, but this doesn't match the typings of @solid-primitives/event. I couldn't quite decipher the TargetWithEventMap magic to make this work out, but ideally you could use the same typings from there.
The text was updated successfully, but these errors were encountered:
Describe The Problem To Be Solved
@solid-primitives/mouse
currently restricts thetarget
to be (an accessor of)HTMLElement | Window | Document
. I'd like the typings to includeSVGSVGElement
(and maybe all/more ofSVGElement
), which works fine in my testing.Suggest A Solution
The docstring actually says
Element
instead ofHTMLElement
, but this doesn't match the typings of@solid-primitives/event
. I couldn't quite decipher theTargetWithEventMap
magic to make this work out, but ideally you could use the same typings from there.The text was updated successfully, but these errors were encountered: