Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug: Copying and pasting from Excel overwrites one additional row cell #8230

Closed
1 task done
halphalp opened this issue Apr 9, 2024 · 6 comments
Closed
1 task done
Assignees
Labels
🔎 Status: More Info Needed More information is required to figure out the root cause.

Comments

@halphalp
Copy link

halphalp commented Apr 9, 2024

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Copy values from Excel
  2. Select a location in a NocoDB table to paste
  3. Paste the values and note that the row after the last pasted row has its value erased

Essentially, if I copy 5 cells from Excel and paste them into rows 1-5 in a NocoDB table, the value in the column I'm pasting for row 6 will be erased if it exists.

Desired Behavior

Only update the rows being pasted - not beyond.

Project Details

Node: v20.11.1
Arch: x64
Platform: linux
Docker: true
RootDB: pg
PackageVersion: 0.205.1

Attachments

No response

@dstala
Copy link
Member

dstala commented Apr 9, 2024

tried copying from a Google spreadsheet, unable to reproduce. Can you confirm if you by mistake didn't copy one extra empty cell? you can paste us a video of this issue. would help us.

Haven't tried using MS Excel though

@dstala dstala added the 🔎 Status: More Info Needed More information is required to figure out the root cause. label Apr 9, 2024
@halphalp
Copy link
Author

halphalp commented Apr 9, 2024

tried copying from a Google spreadsheet, unable to reproduce. Can you confirm if you by mistake didn't copy one extra empty cell? you can paste us a video of this issue. would help us.

Haven't tried using MS Excel though

I'll try to record something, but I can confirm this has happened multiple times when loading data. If it helps, I copied from Excel to NocoDB in Microsoft Edge.

@o1lab
Copy link
Member

o1lab commented Apr 9, 2024

Could you please try it in chrome or others once.

@halphalp
Copy link
Author

halphalp commented Apr 9, 2024

Could you please try it in chrome or others once.

Can confirm it's also happening in Chrome. I select two cells in Excel, copy, click a single cell in NocoDB, right click > paste, it pastes the two cells and highlights a third (the row underneath the paste) and clears its contents.

@xtyuns
Copy link

xtyuns commented Apr 14, 2024

the same question,When the content copied from desktop version of Excel exceeds 1 column, you will also encounter an error message from the front end.

step1: create a table
r1

step2: copy from excel
r2

step3: paste in table
r3

@xtyuns
Copy link

xtyuns commented Apr 14, 2024

The reason for this problem is that clipboardData always ends with \n.
image

So when you select 2 columns from Excel copy and paste them into nocodb, it will produce an extra row with only one column
image

@rameshmane7218 rameshmane7218 self-assigned this Apr 22, 2024
@rameshmane7218 rameshmane7218 changed the title 🐛 Bug: Copying and pasting from Excel overwrites one additional row 🐛 Bug: Copying and pasting from Excel overwrites one additional row cell Apr 22, 2024
@dstala dstala closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔎 Status: More Info Needed More information is required to figure out the root cause.
Projects
Status: ✅ Closed
Development

No branches or pull requests

5 participants