diff --git a/packages/nc-gui/components/project/InviteProjectCollabSection.vue b/packages/nc-gui/components/project/InviteProjectCollabSection.vue index 332a2de80b..2fd3815c4d 100644 --- a/packages/nc-gui/components/project/InviteProjectCollabSection.vue +++ b/packages/nc-gui/components/project/InviteProjectCollabSection.vue @@ -182,6 +182,9 @@ onKeyStroke('Backspace', () => { const onPaste = (e: ClipboardEvent) => { const pastedText = e.clipboardData?.getData('text') const inputArray = pastedText?.split(',') || pastedText?.split(' ') + if (inputArray?.length === 1 && inviteData.email.length > 1) { + inputArray[0] = inviteData.email += inputArray[0] + } inputArray?.forEach((el) => { if (el.length < 1) { emailValidation.isError = true diff --git a/packages/nc-gui/components/workspace/InviteSection.vue b/packages/nc-gui/components/workspace/InviteSection.vue index 6cad5dfa9e..972b0d2378 100644 --- a/packages/nc-gui/components/workspace/InviteSection.vue +++ b/packages/nc-gui/components/workspace/InviteSection.vue @@ -138,6 +138,9 @@ onKeyStroke('Backspace', () => { const onPaste = (e: ClipboardEvent) => { const pastedText = e.clipboardData?.getData('text') const inputArray = pastedText?.split(',') || pastedText?.split(' ') + if (inputArray?.length === 1 && inviteData.email.length > 1) { + inputArray[0] = inviteData.email += inputArray[0] + } inputArray?.forEach((el) => { if (el.length < 1) { emailValidation.isError = true