Skip to content

Commit

Permalink
feat(): enable selectorsFn default
Browse files Browse the repository at this point in the history
  • Loading branch information
Enlcxx committed Mar 17, 2023
1 parent 1873ff6 commit 1da4039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export function themeNameProviderFactory() {
{ provide: LY_THEME, useClass: CustomMinimaDeepDark, multi: true },
{ provide: LY_THEME_GLOBAL_VARIABLES, useClass: GlobalVariables },
{ provide: LY_THEME_NAME, useFactory: themeNameProviderFactory },
{ provide: LY_ENABLE_SELECTORS_FN, useValue: true },
{ provide: LY_ENABLE_SELECTORS_FN, useValue: null }, // default true
{ provide: HAMMER_GESTURE_CONFIG, useClass: LyHammerGestureConfig }
],
bootstrap: [AppComponent]
Expand Down
3 changes: 3 additions & 0 deletions src/lib/src/theme/core-theme.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class CoreTheme {
@Optional() @Inject(LY_CLASS_NAME_PREFIX) readonly _classNamePrefix?: string,
@Optional() @Inject(LY_ENABLE_SELECTORS_FN) readonly _enableSelectorsFn?: boolean
) {
if (_enableSelectorsFn == null) {
this._enableSelectorsFn = true;
}
this._document = _document;

if (!isDevMode() && _classNamePrefix) {
Expand Down

0 comments on commit 1da4039

Please sign in to comment.