mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 17:23:27 +03:00
fix: Fix select behaviour
This commit is contained in:
@@ -81,12 +81,12 @@ const Add = React.forwardRef(({ children, onCreate }, ref) => {
|
||||
|
||||
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]);
|
||||
|
||||
if (!isOpened) {
|
||||
|
||||
Reference in New Issue
Block a user