fix: auto focus and select the input when notification modal prompt (#7286)

- Use `autofill` attribute instead of `input.focus()` on ref
- Auto focus and select all content of the input when prompt
This commit is contained in:
akumatus
2024-06-21 03:01:14 +00:00
parent f24c0caaea
commit 1dc254a755

View File

@@ -189,6 +189,7 @@ export function patchNotificationService(
placeholder={placeholder}
defaultValue={value}
onChange={e => (value = e)}
ref={input => input?.select()}
/>
</div>
);