Skip to content

Commit

Permalink
fix getPropertyValue check
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank99 committed Dec 18, 2023
1 parent 243f29d commit 85425ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ const useParentThemeAndContext = (rootElement: HTMLElement | null) => {
const FallbackStyles = ({ root }: { root: HTMLElement }) => {
useIsomorphicLayoutEffect(() => {
// bail if styles are already loaded
if (root.style.getPropertyValue('--_iui-v3-loaded') === 'yes') {
if (getComputedStyle(root).getPropertyValue('--_iui-v3-loaded') === 'yes') {
return;
}

Expand Down

0 comments on commit 85425ae

Please sign in to comment.