File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/material-experimental/mdc-list Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ export abstract class MatInteractiveListBase<T extends MatListItemBase>
8989 }
9090
9191 ngAfterViewInit ( ) {
92- // TODO: Replace with `ngDevMode` build time check once #20146 is available.
93- if ( isDevMode ( ) && ! this . _foundation ) {
92+ if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && ! this . _foundation ) {
9493 throw Error ( 'MDC list foundation not initialized for Angular Material list.' ) ;
9594 }
9695
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export class MatSelectionList extends MatInteractiveListBase<MatListOption>
9898 const newValue = coerceBooleanProperty ( value ) ;
9999
100100 if ( newValue !== this . _multiple ) {
101- if ( isDevMode ( ) && this . _initialized ) {
101+ if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && this . _initialized ) {
102102 throw new Error (
103103 'Cannot change `multiple` mode of mat-selection-list after initialization.' ) ;
104104 }
You can’t perform that action at this time.
0 commit comments