1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 07:39:44 +02:00

fix: Prevent scroll when focusing

This commit is contained in:
Maksim Eltyshev 2022-12-26 22:51:17 +01:00
parent 7e07a75124
commit 1dacd6e700
10 changed files with 31 additions and 14 deletions

View file

@ -63,7 +63,9 @@ const AddStep = React.memo(({ onCreate, onClose }) => {
}, [openStep]);
useEffect(() => {
nameField.current.focus();
nameField.current.focus({
preventScroll: true,
});
}, []);
useDidUpdate(() => {