diff --git a/packages/nc-gui/components/account/UsersModal.vue b/packages/nc-gui/components/account/UsersModal.vue index 096dc3761b..4f5506215b 100644 --- a/packages/nc-gui/components/account/UsersModal.vue +++ b/packages/nc-gui/components/account/UsersModal.vue @@ -16,6 +16,7 @@ import { useI18n, useNuxtApp, } from '#imports' +import { extractEmail } from '~/helpers/parsers/parserHelpers' interface Props { show: boolean @@ -99,6 +100,12 @@ const clickInviteMore = () => { } const emailInput: VNodeRef = (el) => (el as HTMLInputElement)?.focus() + +const onPaste = (e: ClipboardEvent) => { + const pastedText = e.clipboardData?.getData('text') ?? '' + + usersData.value.emails = extractEmail(pastedText) || pastedText +}