mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
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}
|
||||
defaultValue={value}
|
||||
onChange={e => (value = e)}
|
||||
ref={input => input?.select()}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user