File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export class CdkRadioGroup<V> {
170
170
// If the group is disabled and the toolbar is set to skip disabled items,
171
171
// the radio buttons should not be part of the toolbar's navigation.
172
172
if ( this . disabled ( ) && this . toolbar . skipDisabled ( ) ) {
173
- radioButtons . forEach ( radio => this . toolbar ! . deregister ( radio ) ) ;
173
+ radioButtons . forEach ( radio => this . toolbar ! . unregister ( radio ) ) ;
174
174
} else {
175
175
radioButtons . forEach ( radio => this . toolbar ! . register ( radio ) ) ;
176
176
}
@@ -182,9 +182,9 @@ export class CdkRadioGroup<V> {
182
182
this . _hasFocused . set ( true ) ;
183
183
}
184
184
185
- toolbarButtonDeregister ( radio : CdkRadioButton < V > ) {
185
+ toolbarButtonUnregister ( radio : CdkRadioButton < V > ) {
186
186
if ( this . toolbar ) {
187
- this . toolbar . deregister ( radio ) ;
187
+ this . toolbar . unregister ( radio ) ;
188
188
}
189
189
}
190
190
}
@@ -239,7 +239,7 @@ export class CdkRadioButton<V> implements OnDestroy {
239
239
240
240
ngOnDestroy ( ) {
241
241
if ( this . _cdkRadioGroup . toolbar ) {
242
- this . _cdkRadioGroup . toolbarButtonDeregister ( this ) ;
242
+ this . _cdkRadioGroup . toolbarButtonUnregister ( this ) ;
243
243
}
244
244
}
245
245
}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export class CdkToolbar<V> {
143
143
}
144
144
}
145
145
146
- deregister ( widget : CdkRadioButtonInterface < V > | CdkToolbarWidget ) {
146
+ unregister ( widget : CdkRadioButtonInterface < V > | CdkToolbarWidget ) {
147
147
const widgets = this . _cdkWidgets ( ) ;
148
148
if ( widgets . delete ( widget ) ) {
149
149
this . _cdkWidgets . set ( new Set ( widgets ) ) ;
@@ -210,6 +210,6 @@ export class CdkToolbarWidget implements OnInit, OnDestroy {
210
210
}
211
211
212
212
ngOnDestroy ( ) {
213
- this . _cdkToolbar . deregister ( this ) ;
213
+ this . _cdkToolbar . unregister ( this ) ;
214
214
}
215
215
}
You can’t perform that action at this time.
0 commit comments