Skip to content

Deprecate forwardEvents and use:event action #84

@elcharitas

Description

@elcharitas

Is your feature request related to a problem? Please describe.
Currently, we make use of an event drilling mechanism to pass events from a ChakraComponent to it's underlying HTML derivative.
This is made possible through the super amazing events prop that is native to the Box component only. This system works but it's a bit cumbersome to maintain and events may or may not get registered. I've also had to introduce lots of fixes to ensure events don't get registered passively.

Describe the solution you'd like
Once sveltejs/svelte#4599 or sveltejs/svelte#8356 gets approved and merged, we should migrate to using it instead and deprecate the use:event action. However, this would be a bit difficult because it means svelte versions in which on:* is not supported would not work with the latest releases of chakra. So we should prolly have both maintained and prolly disable event forwarding for specific svelte versions 😉

Describe alternatives you've considered
No other alternatives

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions