Skip to content

Commit

Permalink
chore: Add polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
timogasda committed Aug 2, 2023
1 parent 288ad71 commit ba68561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/header/use-responsive-actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import clsx from 'clsx';
import React, { useEffect, useRef, useState } from 'react';
import { ResizeObserver } from '@juggle/resize-observer';
import debounce from '../internal/debounce';
import Portal from '../internal/components/portal';
import styles from './styles.css.js';
Expand Down Expand Up @@ -35,7 +36,7 @@ export function useResponsiveActions({ containerRef, actions }: UseResponsiveAct
};

useEffect(() => {
console.log(titleRef.current, actionsRef.current, containerRef?.current);
// console.log(titleRef.current, actionsRef.current, containerRef?.current);
if (containerRef?.current) {
const observer = resizeObserver.current ?? new ResizeObserver(() => debounce(updateLayout));
observer.observe(containerRef.current);
Expand Down

0 comments on commit ba68561

Please sign in to comment.