Skip to content

Commit

Permalink
plasma-*: PopupProvider server rendering [HOTFIX] (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc authored Aug 30, 2024
2 parents 5f0f35f + e162d00 commit 898a2b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const PopupContext = createContext<PopupContextType>({
export const usePopupContext = () => useContext(PopupContext);

export const PopupProvider: FC<PropsWithChildren> = ({ children }) => {
const prevBodyOverflowY = useRef(document.body.style.overflowY);
const prevBodyOverflowY = useRef(typeof document !== 'undefined' ? document.body.style.overflowY : '');
const [items, setItems] = useState<PopupInfo[]>([]);

const register = (info: PopupInfo) => {
Expand Down

0 comments on commit 898a2b7

Please sign in to comment.