Skip to content

Commit

Permalink
Merge pull request #37 from SkyLightQP/develop
Browse files Browse the repository at this point in the history
fix: open only `details` tag in pdf view
  • Loading branch information
SkyLightQP authored Feb 12, 2025
2 parents 3674c04 + 30234fb commit bbec17b
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 bbec17b

Please sign in to comment.