mirror of
https://github.com/plankanban/planka.git
synced 2025-12-27 01:11:50 +03:00
fix: Prevent scroll when focusing
This commit is contained in:
@@ -90,7 +90,9 @@ const UserEmailEditStep = React.memo(
|
||||
}, [email, usePasswordConfirmation, onUpdate, onClose, data]);
|
||||
|
||||
useEffect(() => {
|
||||
emailField.current.focus();
|
||||
emailField.current.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user