Skip to content

Commit

Permalink
fix: open only details tag in pdf view
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyLightQP committed Feb 12, 2025
1 parent 3674c04 commit 30234fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PdfView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ export const PdfView = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>

useEffect(() => {
setInterval(() => {
const details = document.querySelectorAll('details');
const details = document.querySelectorAll('.pdf-view details');
details.forEach((detail) => {
detail.setAttribute('open', '');
});
}, 400);
}, []);

return (
<PdfWrapper>
<PdfWrapper className="pdf-view">
<PdfContainer ref={ref}>
<Title>
우리 생활을 더 편리하게 만듭니다
Expand Down

0 comments on commit 30234fb

Please sign in to comment.