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
[lit-html] styleMap fails when update contains priority directive #3768
Conversation
🦋 Changeset detectedLatest commit: 2743734 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
fc9b15d
to
31567f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
@justinfagnani not sure why, but some CI are failing with strange github errors. Have you seen that before? https://github.com/lit/lit/actions/runs/4544819440 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
FYI, this change broke some stuff for us that was arguably incorrect but was working before nonetheless. The situation we had was something like this: styleMap({
'color': 'red',
'aspect-ratio': 2.1
}); Obviously that |
fix: #3767
Added test to verify that issue existed before, and fixed.
The fix is simple - remove the
!important
directive if exists, and set thepriority
argument in the call tosetProperty