We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b48e8f commit f0931e3Copy full SHA for f0931e3
packages/coreui-react/src/utils/isRTL.ts
@@ -1,5 +1,5 @@
1
const isRTL = (element?: HTMLElement | HTMLDivElement | null) => {
2
- if (document.documentElement.dir === 'rtl') {
+ if (typeof document !== 'undefined' && document.documentElement.dir === 'rtl') {
3
return true
4
}
5
0 commit comments