From b43f0d5c596f22619d8db7c548c1f4d7bd76eb32 Mon Sep 17 00:00:00 2001 From: Dmitriy Kovalenko Date: Sat, 28 Mar 2020 22:15:42 +0200 Subject: [PATCH] Replace ?? operator with manual !== undefined --- packages/material-ui/src/FormControl/FormControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui/src/FormControl/FormControl.js b/packages/material-ui/src/FormControl/FormControl.js index 07fdceec6ea3de..4512a9741c5f76 100644 --- a/packages/material-ui/src/FormControl/FormControl.js +++ b/packages/material-ui/src/FormControl/FormControl.js @@ -120,7 +120,7 @@ const FormControl = React.forwardRef(function FormControl(props, ref) { }); const [_focused, setFocused] = React.useState(false); - const focused = visuallyFocused ?? _focused; + const focused = visuallyFocused !== undefined ? visuallyFocused : _focused; if (disabled && focused) { setFocused(false);