fix: no need for batchUdated if no selector

This commit is contained in:
Martin Guillon
2020-12-07 13:28:24 +01:00
parent 6f9d0527c0
commit 1c85549ed3

View File

@ -473,6 +473,9 @@ export class CssState {
}
const matchingSelectors = this._match.selectors.filter((sel) => (sel.dynamic ? sel.match(view) : true));
if (!matchingSelectors || matchingSelectors.length === 0) {
return;
}
view._batchUpdate(() => {
this.stopKeyframeAnimations();
this.setPropertyValues(matchingSelectors);