Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!disabled.current && observed) {
if (!car.focusInside(observed)) {
car.moveFocusInside(observed, null);
}
}
});
};
React.useEffect(() => {
disabled.current = isDisabled;
moveFocus();
}, [isDisabled]);
return (
<div>
{children}
</div>
);
}