Author Topic: Incorrect value copied when dragging and dropping more than 2 cells in grid  (Read 1814 times)

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Param query version is using 6.2.4.
Incorrect value is copied when dragging and dropping more than 2 cells in parameter query grid.
This only happens when you enter a number in a cell with datatype = string.
The correct value is copied when dragging two or less cells.

This bug can also be reproduced on the demo site.
If you drag the 4th to 6th row of the product name column of demo page below and drop it in the cell in the 3rd row, -10 will be displayed in the 3rd row.
https://paramquery.com/pro/demos62/dnd_grid

I would like to know the cause of this bug and how to resolve it.

Thanking you in advance.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5198
    • View Profile
This is the stackblitz I've created as per your description ( multiple rows DnD ), but I don't see -10 displayed anywhere after DnD of rows  4th to 6th and drop it to the 3rd row

https://stackblitz.com/edit/paramquery-demo-p9ndc5?file=index.js

Could you please help reproduce the issue by making required changes in the stackblitz.

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Thank you for your answer
Sorry for the lack of explanation for the question

Enter the number 1 in rows 4-6 of the Product Name field on the demo page below, then select the three entered cells at the same time and drag them to the top. After that, if you drop it in the cell in the third row, -10 will be displayed.
https://paramquery.com/pro/demos62/dnd_grid
[img][/screen1.png]

Thanking you in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5198
    • View Profile
Thank you but I'm still unable to see -10 in mine stackblitz by following your steps.

https://stackblitz.com/edit/paramquery-demo-p9ndc5?file=index.html

Please share a jsiddle / stackblitz as per your implementation to reproduce the issue.
« Last Edit: June 23, 2020, 12:32:40 pm by paramvir »

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Thank you for your answer
Thank you for preparing Stackblitz

I edited Stackblitz.
As a result of selecting the cells in the 4th to 6th rows and dragging to the 3rd row, -10 is displayed in the 3rd row.
https://stackblitz.com/edit/paramquery-demo-p9ndc5?file=index.js
[img][/screen1.png]

Thanking you in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5198
    • View Profile
Ok got it, you meant Autofill ( which is different from DnD module ). I'm looking into it.

hideki.yoshikura

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Will this matter take a long time to resolve?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5198
    • View Profile
The issue is reproducible, it would be fixed in upcoming version.