this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix RTL observer not working

+3 -2
+3 -2
src/utils/is-rtl.js
··· 4 4 const observer = new MutationObserver((mutations) => { 5 5 mutations.forEach((mutation) => { 6 6 if (mutation.type === 'attributes') { 7 - const { value } = mutation.target; 8 - if (value === 'rtl') { 7 + const { dir } = mutation.target; 8 + if (dir === 'rtl') { 9 9 IS_RTL = true; 10 10 } else { 11 11 IS_RTL = false; 12 12 } 13 + console.log({ IS_RTL }); 13 14 // Fire custom event 'dirchange' on document 14 15 // document.dispatchEvent(new Event('dirchange')); 15 16 }