issue with column reordering in RTL using ColReorder
issue with column reordering in RTL using ColReorder

Hi there,
I'm encountering an issue with column reordering when using ColReorder in an RTL layout. The columns are not being reordered correctly. For a better understanding of the issue, please refer to the attached demo.
https://live.datatables.net/pivaduhe/1/edit
Thank you for your time and attention to this matter.
Replies
I haven't received any response yet, can anyone help me?
facing same issue, any luck?
This PR should have fixed the issue. Are you able to use the ColReorder nightly and say if it addresses the problem for you. If it does, I'll get it released.
Allan
Hi Allen
I have same issue
and I noticed this line
in above PR
private _isRtl() {
return $(this.dt.table()).css('direction') === 'rtl';
}
this part $(this.dt.table()) is return no object
after i change it to $(this.dt.table().node()) it return object and worked
can you check it please?
also instead of search of rtl in the table i think to lookup in body tag can be added also or html tag
Hi,
Completely agree - many thanks for flagging that up. I've committed the suggested change.
If the body is rtl, then I think the table should be detected as such? It seems to be that way for me in Firefox.
Regards,
Allan