From c4d6474a80f5010230e575cb9a726aaf2fd39549 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Mon, 18 Mar 2019 17:50:38 -0700 Subject: [PATCH] implement dir workaround for 3.0 (#143) Can confirm that this works internally as we are unable to test for this case externally because of a shady dom / dir mixin bug --- paper-toggle-button.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-toggle-button.js b/paper-toggle-button.js index 7d86c45..7d306b0 100644 --- a/paper-toggle-button.js +++ b/paper-toggle-button.js @@ -247,6 +247,11 @@ Polymer({ }, attached: function() { + var isRtl = this.__calculateIsRtl(); + if (isRtl) { + this.setAttribute('dir', 'rtl'); + } + afterNextRender(this, function() { setTouchAction(this, 'pan-y'); });