mirror of
https://github.com/plankanban/planka.git
synced 2025-12-23 01:11:40 +03:00
fix: Prevent scroll when focusing
This commit is contained in:
@@ -63,7 +63,9 @@ const AddStep = React.memo(({ onCreate, onClose }) => {
|
||||
}, [openStep]);
|
||||
|
||||
useEffect(() => {
|
||||
nameField.current.focus();
|
||||
nameField.current.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
}, []);
|
||||
|
||||
useDidUpdate(() => {
|
||||
|
||||
Reference in New Issue
Block a user