diff --git a/frontend/src/components/profile/ProfileModal.jsx b/frontend/src/components/profile/ProfileModal.jsx index 9757f75..a0c7bb9 100644 --- a/frontend/src/components/profile/ProfileModal.jsx +++ b/frontend/src/components/profile/ProfileModal.jsx @@ -166,6 +166,10 @@ function ProfileModal({ format.name.toLowerCase().includes(formatFilter.toLowerCase()) ); + const handleInputFocus = (event) => { + event.target.select(); + }; + return ( {loading ? ( @@ -187,6 +191,7 @@ function ProfileModal({ onChange={(e) => setName(e.target.value)} placeholder="Enter profile name" className="w-full p-2 border rounded dark:bg-gray-700 dark:text-gray-200 dark:border-gray-600" + onClick={handleInputFocus} />
@@ -244,6 +249,7 @@ function ProfileModal({ Custom Formats setFormatFilter(e.target.value)} @@ -258,6 +264,7 @@ function ProfileModal({ > {format.name} @@ -277,6 +284,7 @@ function ProfileModal({ Tag-based Scoring setTagFilter(e.target.value)} @@ -288,6 +296,7 @@ function ProfileModal({
{tag}