Replies: 1 comment
-
I was able to reproduce this in a small-scale example on StackBlitz. It happens when you drag from the table to an operator and when dragging from an operator to another operator. https://stackblitz.com/edit/vue-dqswbz |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am dragging from a table. Using
onEnd
oronMove
I see the event initially showing the correct item; however, the event later changes to a different item.The first screenshot is the console log for an
onMove
event. The "dragged" value indicates the correct row (id ending in "...CATW"). When I expand the event object, the "dragged" value is now a different row (id ending in "...X26G".The second screenshot is the UI result. I started with 3 items in the table, WO-1, WO-2, and WO-3. I drug (dragged, drugged...) the WO-2 item from the table to the list below. In my
onEnd
code I grab values from the event. At first, it's the correct data and I'm able to correctly update the backend. However, at some point, the event shows a different item and I end up with remnants of WO-3 in the list and the table shows it's missing WO-3 instead of WO-2. If I leave the page and return, everything is correct because I was able to update the database with the correct information. While dragging the row, the correct data is displayed. Before dropping the row, the correct data is displayed in the target drop zone.To make matters more strange, if I drag the last row of the table, everything works fine. If I drag anything but the bottom row, the event seems to consistently change to the row after the selected row.
Setting table rows (
tbody
) as draggable:Here is the
handleMoveEvent
function....and finally the
handleWellToOperator
that is called byhandleMoveEvent
:Beta Was this translation helpful? Give feedback.
All reactions