alex-kinokon / jsx-dom

Use JSX to create DOM elements.
BSD 3-Clause "New" or "Revised" License
278 stars 30 forks source link

`SVGProps` doesn't implement `slot` event though `SVGSVGElement` should inherit from `Element` #102

Closed mattclough1 closed 7 months ago

mattclough1 commented 7 months ago
Screenshot 2024-03-08 at 3 34 33 PM

Trying to use the slot attribute on an svg tag, shows the error Property 'slot' does not exist on type 'SVGProps<SVGSVGElement>', however SVGElement inherits the slot property from Element via this inheritance chain:

flowchart RL
    SVGSVGElement-->SVGGraphicsElement
    SVGGraphicsElement-->SVGElement
    SVGElement-->Element
alex-kinokon commented 7 months ago

PR welcome