Skip to content

Commit 4764dd5

Browse files
committed
refac
1 parent 86472bb commit 4764dd5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib/components/chat/MessageInput/InputMenu.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
on:click={() => {
143143
if (fileUploadEnabled) {
144144
uploadFilesHandler();
145+
show = false;
145146
}
146147
}}
147148
>
@@ -175,6 +176,7 @@
175176
cameraInputElement.click();
176177
}
177178
}
179+
show = false;
178180
}
179181
}}
180182
>
@@ -197,6 +199,7 @@
197199
on:click={() => {
198200
if (webUploadEnabled) {
199201
showAttachWebpageModal = true;
202+
show = false;
200203
}
201204
}}
202205
>
@@ -336,6 +339,7 @@
336339
type="button"
337340
on:click={() => {
338341
uploadGoogleDriveHandler();
342+
show = false;
339343
}}
340344
>
341345
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 87.3 78" class="w-4">
@@ -575,6 +579,7 @@
575579
type="button"
576580
on:click={() => {
577581
uploadOneDriveHandler('personal');
582+
show = false;
578583
}}
579584
>
580585
<div class="flex flex-col">
@@ -589,6 +594,7 @@
589594
type="button"
590595
on:click={() => {
591596
uploadOneDriveHandler('organizations');
597+
show = false;
592598
}}
593599
>
594600
<div class="flex flex-col">

0 commit comments

Comments
 (0)