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.
2 parents 259ad33 + e01d780 commit 8287b5fCopy full SHA for 8287b5f
client/modules/IDE/components/EditableInput.jsx
@@ -28,7 +28,12 @@ function EditableInput({
28
const { t } = useTranslation();
29
React.useEffect(() => {
30
if (isEditing) {
31
- inputRef.current?.focus();
+ const inputElement = inputRef.current;
32
+ inputElement.setSelectionRange(
33
+ inputElement.value.length,
34
+ inputElement.value.length
35
+ );
36
+ inputElement.focus();
37
}
38
}, [isEditing]);
39
0 commit comments