Closed 726b closed 4 years ago
Thank you for reporting.
I have confirmed that the problem reproduces. https://codepen.io/luncheon/pen/MWKrYxa
I prefer to fix it without adding any options if possible. I think the following is sufficient to check if a container is RTL.
appendTo: body
(default), check if getComputedStyle(document.body).direction === 'rtl'
appendTo: parent
, check if getComputedStyle(currentTarget.parentElement).direction === 'rtl'
If you have any thoughts, please comment.
That's even better!
By the way, forgot to say, ripplet is a very nice package ― thank you for a great job.
v0.2.1 that fixes this issue has been released! If it hasn't been fixed in your case, please reopen this issue.
When using ripplet in RTL container, the ripple X position is off. This can be fixed with adding a 'direction' option:
and then changing line 117 to: