mirror of
https://github.com/plankanban/planka.git
synced 2025-07-28 01:29:44 +02:00
fix: Fix select behaviour
This commit is contained in:
parent
1329da3fe5
commit
5ac99c9d1d
15 changed files with 18 additions and 18 deletions
|
@ -65,12 +65,12 @@ const CardAdd = React.memo(({ isOpened, onCreate, onClose }) => {
|
|||
|
||||
useEffect(() => {
|
||||
if (isOpened) {
|
||||
nameField.current.ref.current.select();
|
||||
nameField.current.ref.current.focus();
|
||||
}
|
||||
}, [isOpened]);
|
||||
|
||||
useDidUpdate(() => {
|
||||
nameField.current.ref.current.select();
|
||||
nameField.current.ref.current.focus();
|
||||
}, [selectNameFieldState]);
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue