mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix(css-state): _appliedSelectorsVersion assignment (#7405)
Assign CSS state applied selectors version after ensuring and matching the selectors.
This commit is contained in:

committed by
Dimitar Topuzov

parent
f08b491750
commit
9ecf07fee6
@ -397,8 +397,8 @@ export class CssState {
|
|||||||
private updateMatch() {
|
private updateMatch() {
|
||||||
const view = this.viewRef.get();
|
const view = this.viewRef.get();
|
||||||
if (view && view._styleScope) {
|
if (view && view._styleScope) {
|
||||||
this._appliedSelectorsVersion = view._styleScope._getSelectorsVersion();
|
|
||||||
this._match = view._styleScope.matchSelectors(view);
|
this._match = view._styleScope.matchSelectors(view);
|
||||||
|
this._appliedSelectorsVersion = view._styleScope._getSelectorsVersion();
|
||||||
} else {
|
} else {
|
||||||
this._match = CssState.emptyMatch;
|
this._match = CssState.emptyMatch;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user