mirror of
https://github.com/plankanban/planka.git
synced 2025-07-21 06:09:43 +02:00
fix: Prevent scroll when focusing
This commit is contained in:
parent
0ad9cffb08
commit
26f464eb25
10 changed files with 31 additions and 14 deletions
|
@ -90,7 +90,9 @@ const UserEmailEditStep = React.memo(
|
|||
}, [email, usePasswordConfirmation, onUpdate, onClose, data]);
|
||||
|
||||
useEffect(() => {
|
||||
emailField.current.focus();
|
||||
emailField.current.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue