From 4ab89f3d9864f376c9ec910503b6288327c0ade1 Mon Sep 17 00:00:00 2001 From: vitormalencar Date: Thu, 25 Feb 2021 16:25:24 +0100 Subject: [PATCH] feat: merge with master --- src/clipboard-action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clipboard-action.js b/src/clipboard-action.js index 67412ce..e77a4e5 100644 --- a/src/clipboard-action.js +++ b/src/clipboard-action.js @@ -43,7 +43,7 @@ class ClipboardAction { * Creates a fake textarea element, sets its value from `text` property, */ createFakeElement() { - const isRTL = document.documentElement.getAttribute('dir') == 'rtl'; + const isRTL = document.documentElement.getAttribute('dir') === 'rtl'; this.fakeElem = document.createElement('textarea'); // Prevent zooming on iOS