react-dnd-treeview
react-dnd-treeview copied to clipboard
dragPreviewRender doesn't work on RTL pages
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
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.
Thank you for your amazing component. I will create a repo to show the problem and send the link.
I think he means right-to-left pages
Yes that's right. So I changed some code in node_modules folder to fix it.
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