Custom drag and drop events not being triggered on table #4502
Unanswered
lorenzoMrt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I'm currently working on a custom file browser and I'm using react table to show relevant data of a file (name, modified date, size, bla bla...) This table gets the data from aws cloud.
I'm trying to implement a custom drop event that, when it triggers, it captures the file being dragged and uploads it to my aws cloud. Problem is that when dropping the file on the row area, it triggers the default event of the browser (opens the file on new tab).
Note that I have overwritten the drop and dragover event as stated on this thread: prevent browser from loading a drag and dropped file in order to execute my custom event.
I narrowed down the issue to this bit of code:
This bit renders the table rows and its content by iterating through the rows of rowModel.
My guess is that flexRender is the problematic bit because I tested rendering the cell with its id as value and the drop event worked as expected
Beta Was this translation helpful? Give feedback.
All reactions