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:
@@ -189,6 +189,7 @@ export function patchNotificationService(
|
|||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
defaultValue={value}
|
defaultValue={value}
|
||||||
onChange={e => (value = e)}
|
onChange={e => (value = e)}
|
||||||
|
ref={input => input?.select()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user