facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

Dragging Preview of Component inside Cell in Safari #372

Open BugsBunny338 opened 8 years ago

BugsBunny338 commented 8 years ago

Not sure whether this is an issue of fixed-data-table, react-dnd or Safari, but when I insert a draggable (export default DragSource(type, spec, collect)(MyComponent);) component inside a Cell (inside Column inside Table) and start dragging, there is no preview in Safari 9 on OS X 10.11. Dropping on defined dropzones work, but no thumbnail midflight :-(

If I use the same DragSource component outside fixed-data-table, dragging preview works normally.

Any ideas?

EDIT Here is the code sample: http://output.jsbin.com/qawiye. Make sure you use Safari and try dragging the first item, then scroll randomly, drag different one, scroll randomly, drag yet another one. Sometimes I get no preview, sometimes I get preview of another item (not the one you're dragging), sometimes I get preview cut in half, etc.

cyranosky commented 7 years ago

Hi,can i ask you a question? fixed-data-table can support drag and drop?

BugsBunny338 commented 7 years ago

@cyranosky It does not support drag&drop from the box. That's why I use Abramov's react-dnd.