mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +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');
|
document.execCommand('copy');
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (inputRef.current !== null) {
|
||||||
|
inputRef.current.select();
|
||||||
|
}
|
||||||
|
}, []);
|
||||||
return (
|
return (
|
||||||
<div className={classnames(className, styles['share-prompt-container'])}>
|
<div className={classnames(className, styles['share-prompt-container'])}>
|
||||||
<div className={styles['buttons-container']}>
|
<div className={styles['buttons-container']}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue