diff --git a/front/src/Components/Menu/AboutRoomSubMenu.svelte b/front/src/Components/Menu/AboutRoomSubMenu.svelte index 16b5c057..2a546a14 100644 --- a/front/src/Components/Menu/AboutRoomSubMenu.svelte +++ b/front/src/Components/Menu/AboutRoomSubMenu.svelte @@ -40,7 +40,9 @@ }) function copyLink() { - HTMLShareLink.select(); + const input: HTMLInputElement = document.getElementById('input-share-link') as HTMLInputElement; + input.focus(); + input.select(); document.execCommand('copy'); } @@ -59,12 +61,12 @@

Share the link of the room !

- +

Share the link of the room !

- +

Information on the map

diff --git a/front/src/Components/Menu/GuestSubMenu.svelte b/front/src/Components/Menu/GuestSubMenu.svelte index 13a7981a..d054ff4d 100644 --- a/front/src/Components/Menu/GuestSubMenu.svelte +++ b/front/src/Components/Menu/GuestSubMenu.svelte @@ -2,7 +2,9 @@ let HTMLShareLink: HTMLInputElement; function copyLink() { - HTMLShareLink.select(); + const input: HTMLInputElement = document.getElementById('input-share-link') as HTMLInputElement; + input.focus(); + input.select(); document.execCommand('copy'); } @@ -22,12 +24,12 @@

Share the link of the room !

- +