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>
89
89
}
90
90
91
91
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 ) {
94
93
throw Error ( 'MDC list foundation not initialized for Angular Material list.' ) ;
95
94
}
96
95
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export class MatSelectionList extends MatInteractiveListBase<MatListOption>
98
98
const newValue = coerceBooleanProperty ( value ) ;
99
99
100
100
if ( newValue !== this . _multiple ) {
101
- if ( isDevMode ( ) && this . _initialized ) {
101
+ if ( ( typeof ngDevMode === 'undefined' || ngDevMode ) && this . _initialized ) {
102
102
throw new Error (
103
103
'Cannot change `multiple` mode of mat-selection-list after initialization.' ) ;
104
104
}
You can’t perform that action at this time.
0 commit comments