We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef570b commit 6455e3bCopy full SHA for 6455e3b
frontend/src/packages/dashboard/components/FileRenderer/Renamable.tsx
@@ -26,6 +26,7 @@ export default function Renamable({ name, id }: Props) {
26
dispatch(renameFileEntityAction(newPayload));
27
};
28
29
+
30
return (
31
<>
32
{toggle ? (
@@ -49,6 +50,14 @@ export default function Renamable({ name, id }: Props) {
49
50
event.stopPropagation();
51
}
52
}}
53
54
+ onBlur={(event) => {
55
+ handleRename(inputName);
56
+ setToggle(true);
57
+ event.preventDefault();
58
+ event.stopPropagation();
59
+ }}
60
+ autoFocus
61
/>
62
)}
63
</>
0 commit comments