fix(css-state): _appliedSelectorsVersion assignment (#7405)

Assign CSS state applied selectors version after ensuring and matching the selectors.
This commit is contained in:
Vasil Chimev
2019-06-26 10:49:55 +03:00
committed by Dimitar Topuzov
parent f08b491750
commit 9ecf07fee6

View File

@ -397,8 +397,8 @@ export class CssState {
private updateMatch() {
const view = this.viewRef.get();
if (view && view._styleScope) {
this._appliedSelectorsVersion = view._styleScope._getSelectorsVersion();
this._match = view._styleScope.matchSelectors(view);
this._appliedSelectorsVersion = view._styleScope._getSelectorsVersion();
} else {
this._match = CssState.emptyMatch;
}