1 | ;
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports.default = useAutoFocus;
|
5 |
|
6 | var _react = require("react");
|
7 |
|
8 | function useAutoFocus(autoFocus, ref) {
|
9 | (0, _react.useEffect)(() => {
|
10 | if (autoFocus && ref.current) ref.current.focus(); // eslint-disable-next-line react-hooks/exhaustive-deps
|
11 | }, []);
|
12 | } |
\ | No newline at end of file |