Skip to content

Commit 9da5f38

Browse files
committed
fix: allow pasting while in new convo view
1 parent 64453b2 commit 9da5f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ts/components/leftpane/overlay/choose-action/OverlayChooseAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ export const OverlayChooseAction = () => {
4141

4242
useEffect(() => {
4343
function handlePaste(event: ClipboardEvent) {
44-
event.preventDefault();
45-
4644
const pasted = event.clipboardData?.getData('text');
4745

4846
if (pasted && isString(pasted) && !isEmpty(pasted)) {
4947
if (pasted.startsWith('http') || pasted.startsWith('https')) {
5048
openJoinCommunity();
49+
event.preventDefault();
5150
} else if (pasted.startsWith('05')) {
5251
openNewMessage();
52+
event.preventDefault();
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)