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 42dec8d commit ad831f5Copy full SHA for ad831f5
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