Skip to content

Commit

Permalink
fix: useLayoutEffect for focus actions
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jun 11, 2019
1 parent e7e3a92 commit 254e2ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MoveFocusInside.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function MoveFocusInside(props) {
});
};

React.useEffect(() => {
React.useLayoutEffect(() => {
disabled.current = props.disabled;
moveFocus();
}, [props.disabled]);
Expand Down

0 comments on commit 254e2ae

Please sign in to comment.