Skip to content

Commit bd66e5c

Browse files
rkirovandrewseguin
authored andcommitted
chore(typescript): uniformly access all index sigs with index access. (#15523)
This is a follow up to #15206, with these two changes all of material in conforming. A build-time check to enforce this is part of tsetse - https://tsetse.info/property-renaming-safe but I don't know how to turn it on for this repositories bazel builds.
1 parent 962e303 commit bd66e5c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/dialog/dialog-content-directives.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export class MatDialogClose implements OnInit, OnChanges {
8383
this.dialogResult = proxiedChange.currentValue;
8484
}
8585

86-
if (changes.ariaLabel) {
87-
this._hasAriaLabel = !!changes.ariaLabel.currentValue;
86+
if (changes['ariaLabel']) {
87+
this._hasAriaLabel = !!changes['ariaLabel'].currentValue;
8888
}
8989
}
9090
}

src/lib/list/selection-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ export class MatSelectionList extends _MatSelectionListMixinBase implements Focu
405405
}
406406

407407
ngOnChanges(changes: SimpleChanges) {
408-
const disableRippleChanges = changes.disableRipple;
409-
const colorChanges = changes.color;
408+
const disableRippleChanges = changes['disableRipple'];
409+
const colorChanges = changes['color'];
410410

411411
if ((disableRippleChanges && !disableRippleChanges.firstChange) ||
412412
(colorChanges && !colorChanges.firstChange)) {

0 commit comments

Comments
 (0)