mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 08:06:50 +00:00
fix: paste event on existing text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user