Skip to content
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

fix(compiler): allow attribute & reflect values on props w/ non JS primitives #5958

Closed
wants to merge 1 commit into from

Conversation

tanner-reits
Copy link
Member

What is the current behavior?

Stencil ignores setting the attribute and reflect values when transforming @Prop() decorators if their resolved types don't resolve to a JS primitive (string, number, etc.).

GitHub Issue Number: #5618

What is the new behavior?

Stencil will now set the attribute and reflect values regardless of the resolved type. This was they are always present in the generated docs-json.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Verified the expected behavior with the reproduction case, and updated unit test cases where the previous behavior was checked

Other information

There may be some repercussions to this change beyond what we can foresee, so we'll keep an eye on feedback once this is released if there are unwanted consequences

Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

This pull request was closed.
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.

2 participants