Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
implement dir workaround for 3.0 (#143)
Browse files Browse the repository at this point in the history
Can confirm that this works internally as we are unable to test for this case externally because of a shady dom / dir mixin bug
  • Loading branch information
Elliott Marquez authored Mar 19, 2019
1 parent c2c556c commit c4d6474
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions paper-toggle-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ Polymer({
},

attached: function() {
var isRtl = this.__calculateIsRtl();
if (isRtl) {
this.setAttribute('dir', 'rtl');
}

afterNextRender(this, function() {
setTouchAction(this, 'pan-y');
});
Expand Down

0 comments on commit c4d6474

Please sign in to comment.