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] style shorthand lost in production mode #7390

Merged
merged 2 commits into from Mar 30, 2022

Conversation

tivac
Copy link
Contributor

@tivac tivac commented Mar 24, 2022

See #7386 for context, but essentially elements using the style:<prop> shorthand are not generating an update function in production mode due to the innerHTML optimization being applied incorrectly.

So this fixes #7386 by adding a new condition to check for when opting out of the .innerHTML optimization in prod mode. Also modifies an existing test so that it'll demonstrate the bug and fail without the logic fix.

Huge thanks to @dummdidumm for pointing to literally the exact line that needed changing.

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.

style: shorthand missing reactivity in prod mode
2 participants