react-sortable-hoc
react-sortable-hoc copied to clipboard
add rtl support
This PR adds a rtl support when direction is set to rtl.
Only need set rtl props to SortableContainer:
<SortableList items={this.state.items} axis='x' rtl onSortEnd={this.onSortEnd} />
or
<SortableList items={this.state.items} axis='xy' rtl onSortEnd={this.onSortEnd} />
Thanks
@clauderic can you review this PR pls?
Hi @PersianArt, Your solution is great, will you be fixing the minor conflict to complete the merge?
@roeycohen , you can check mine PR https://github.com/clauderic/react-sortable-hoc/pull/518 which is based on this with fixes.
Hi @PersianArt, Your solution is great, will you be fixing the minor conflict to complete the merge?
Hi, Unfortunately, the author of this package didn't consider this pr then there is no reason to solve new conflicts, but you can use my fork here: https://www.npmjs.com/package/react-sortable-hoc-rtl
Goodluck