|
|
@ -182,6 +182,9 @@ onKeyStroke('Backspace', () => { |
|
|
|
const onPaste = (e: ClipboardEvent) => { |
|
|
|
const onPaste = (e: ClipboardEvent) => { |
|
|
|
const pastedText = e.clipboardData?.getData('text') |
|
|
|
const pastedText = e.clipboardData?.getData('text') |
|
|
|
const inputArray = pastedText?.split(',') || pastedText?.split(' ') |
|
|
|
const inputArray = pastedText?.split(',') || pastedText?.split(' ') |
|
|
|
|
|
|
|
if (inputArray?.length === 1 && inviteData.email.length > 1) { |
|
|
|
|
|
|
|
inputArray[0] = inviteData.email += inputArray[0] |
|
|
|
|
|
|
|
} |
|
|
|
inputArray?.forEach((el) => { |
|
|
|
inputArray?.forEach((el) => { |
|
|
|
if (el.length < 1) { |
|
|
|
if (el.length < 1) { |
|
|
|
emailValidation.isError = true |
|
|
|
emailValidation.isError = true |
|
|
|