Skip to content

feat: allow controller decorator to accept ElementDefinitionOptions #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

HipsterBrown
Copy link

Fixes #148

To allow extending native elements with the @controller decorator, this PR allows for passing ElementDefinitionOptions to the decorator and treating it like a decorator factory.

Regular usage of the decorator will still work, so this should not be a breaking change.

@HipsterBrown HipsterBrown requested a review from a team as a code owner May 18, 2021 18:09
@rektide
Copy link

rektide commented May 26, 2021

@HipsterBrown is this effort abandoned? did something change your assessment of the need for this?

@HipsterBrown
Copy link
Author

@rektide Based on the explanation in the linked issue (#148 (comment)), extending native elements is not a viable addition to this library since Safari won't support it and can be brittle in the long run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: support extending native elements with controller decorator
2 participants