react-dnd-treeview icon indicating copy to clipboard operation
react-dnd-treeview copied to clipboard

dragPreviewRender doesn't work on RTL pages

Open hosseinimh opened this issue 2 years ago • 5 comments

I had to fix it in node_modules\@minoru\react-dnd-treeview\dist\index.js on line 835: var x = offset.x - window.innerWidth, y = offset.y;

hosseinimh avatar Jul 08 '22 17:07 hosseinimh

@hosseinimh

Thanks for the report.

By "RTL pages" do you mean "React Testing Library"? How can I reproduce the problem?

A minimal code to reproduce, or a Codesandbox would be helpful.

minop1205 avatar Sep 18 '22 20:09 minop1205

Thank you for your amazing component. I will create a repo to show the problem and send the link.

hosseinimh avatar Sep 23 '22 22:09 hosseinimh

I think he means right-to-left pages

yotamberk avatar Jan 13 '23 13:01 yotamberk

Yes that's right. So I changed some code in node_modules folder to fix it.

hosseinimh avatar Jan 13 '23 14:01 hosseinimh

I was able to reproduce the phenomenon in question. I will consider a workaround.

https://user-images.githubusercontent.com/3772820/224169680-ddb2917c-9576-4b37-bc71-cd4d32d44736.mp4

minop1205 avatar Mar 09 '23 22:03 minop1205