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: corrects behavior of style removal #3261

Merged
merged 7 commits into from
Jun 10, 2020
2 changes: 1 addition & 1 deletion packages/web-components/fast-element/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class AdoptedStyleSheetsStyles extends ElementStyles {
public removeStylesFrom(target: StyleTarget): void {
const sourceSheets = this.styleSheets;
target.adoptedStyleSheets = target.adoptedStyleSheets!.filter(
(x: CSSStyleSheet) => sourceSheets.indexOf(x) !== -1
(x: CSSStyleSheet) => sourceSheets.indexOf(x) === -1
);
}
}
Expand Down