mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
select input content on mount
This commit is contained in:
parent
d01e51235c
commit
5e2d399fb2
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ const SharePrompt = ({ className, url }) => {
|
|||
document.execCommand('copy');
|
||||
}
|
||||
}, []);
|
||||
React.useEffect(() => {
|
||||
if (inputRef.current !== null) {
|
||||
inputRef.current.select();
|
||||
}
|
||||
}, []);
|
||||
return (
|
||||
<div className={classnames(className, styles['share-prompt-container'])}>
|
||||
<div className={styles['buttons-container']}>
|
||||
|
|
|
|||
Loading…
Reference in a new issue