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> {
170170 // If the group is disabled and the toolbar is set to skip disabled items,
171171 // the radio buttons should not be part of the toolbar's navigation.
172172 if ( this . disabled ( ) && this . toolbar . skipDisabled ( ) ) {
173- radioButtons . forEach ( radio => this . toolbar ! . deregister ( radio ) ) ;
173+ radioButtons . forEach ( radio => this . toolbar ! . unregister ( radio ) ) ;
174174 } else {
175175 radioButtons . forEach ( radio => this . toolbar ! . register ( radio ) ) ;
176176 }
@@ -182,9 +182,9 @@ export class CdkRadioGroup<V> {
182182 this . _hasFocused . set ( true ) ;
183183 }
184184
185- toolbarButtonDeregister ( radio : CdkRadioButton < V > ) {
185+ toolbarButtonUnregister ( radio : CdkRadioButton < V > ) {
186186 if ( this . toolbar ) {
187- this . toolbar . deregister ( radio ) ;
187+ this . toolbar . unregister ( radio ) ;
188188 }
189189 }
190190}
@@ -239,7 +239,7 @@ export class CdkRadioButton<V> implements OnDestroy {
239239
240240 ngOnDestroy ( ) {
241241 if ( this . _cdkRadioGroup . toolbar ) {
242- this . _cdkRadioGroup . toolbarButtonDeregister ( this ) ;
242+ this . _cdkRadioGroup . toolbarButtonUnregister ( this ) ;
243243 }
244244 }
245245}
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ export class CdkToolbar<V> {
143143 }
144144 }
145145
146- deregister ( widget : CdkRadioButtonInterface < V > | CdkToolbarWidget ) {
146+ unregister ( widget : CdkRadioButtonInterface < V > | CdkToolbarWidget ) {
147147 const widgets = this . _cdkWidgets ( ) ;
148148 if ( widgets . delete ( widget ) ) {
149149 this . _cdkWidgets . set ( new Set ( widgets ) ) ;
@@ -210,6 +210,6 @@ export class CdkToolbarWidget implements OnInit, OnDestroy {
210210 }
211211
212212 ngOnDestroy ( ) {
213- this . _cdkToolbar . deregister ( this ) ;
213+ this . _cdkToolbar . unregister ( this ) ;
214214 }
215215}
You can’t perform that action at this time.
0 commit comments