Skip to content

Commit 8d82ebf

Browse files
author
David de Regt
committed
Updating string-based usage of componentWillUpdate to UNSAFE_componentWillUpdate
1 parent b6dee50 commit 8d82ebf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/utils/FocusManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ export abstract class FocusManager {
389389
// they exist and should be accounted during the focus restriction.
390390
//
391391
// isConditionallyFocusable is an optional callback which will be
392-
// called for componentDidMount() or for componentWillUpdate() to
392+
// called for componentDidMount() or for UNSAFE_componentWillUpdate() to
393393
// determine if the component is actually focusable.
394394
//
395395
// accessibleOnly is true for components that support just being focused
@@ -410,7 +410,8 @@ export function applyFocusableComponentMixin(Component: any, isConditionallyFocu
410410
focusManager.removeFocusableComponent(this);
411411
});
412412

413-
inheritMethod('componentWillUpdate', function(this: FocusableComponentInternal, focusManager: FocusManager, origArgs: IArguments) {
413+
inheritMethod('UNSAFE_componentWillUpdate', function(this: FocusableComponentInternal, focusManager: FocusManager,
414+
origArgs: IArguments) {
414415
if (isConditionallyFocusable) {
415416
const isFocusable = isConditionallyFocusable.apply(this, origArgs);
416417

0 commit comments

Comments
 (0)