jspreadsheet / ce

Jspreadsheet is a lightweight vanilla javascript plugin to create amazing web-based interactive tables and spreadsheets compatible with other spreadsheet software.
https://bossanova.uk/jspreadsheet/v4
MIT License
6.7k stars 820 forks source link

In version 4.4.1 , delete selected row has auto focus on first row and deletes the first row #1183

Open SujinRajak opened 3 years ago

SujinRajak commented 3 years ago

when i dragged the mouse to row 4,5 right clicked on the mouse and it always has auto focus on the first column and clicked on delete selected row always deletes the first row

https://codesandbox.io/s/jexcel-and-react-forked-h7le6?file=/src/index.js

GBonnaire commented 3 years ago

I have try on your sandbox, and i have not reproduct your problem. when i click on cell A4, and right click and select remove rows. Row 4 is deleted not first row.

Can you give more details on process actions for reproduct ?

SujinRajak commented 3 years ago

Hello sir thank you for your fast response, but my question is when you directly right click (and not left click) on may be lets say C5 or any row rather than first row it particularly has focus on the first row , shouldn't the right click focus on the current row cell? why does it have the focus on the first row?

SujinRajak commented 3 years ago

sir, u can do the following steps it the above lines are unclear: step 1 : directly right click on the cell (any rather then first row) eg: E5 issue=>does select the row but has focus on the first row A1 step 2 : displays the Menu for the particular row step 3: select delete row step 4: deletes the first row A1 and not the 5th row E5

SujinRajak commented 3 years ago

ezgif com-gif-maker (2) @Guillaume-Bo u can see this example sir

GBonnaire commented 3 years ago

@paulhodel Maybe on click right not select cell 0,0 but cell is under cursor ?

HaCherry commented 8 months ago

@SujinRajak I have the same issue with version 4.13.4 have you found any solution yet?