diff options
Diffstat (limited to 'components/information/information-button.tsx')
| -rw-r--r-- | components/information/information-button.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/information/information-button.tsx b/components/information/information-button.tsx index 5a9dc4d4..52079767 100644 --- a/components/information/information-button.tsx +++ b/components/information/information-button.tsx @@ -111,7 +111,14 @@ export function InformationButton({ // 파일 다운로드 핸들러
const handleDownload = () => {
if (information?.attachmentFilePath) {
- window.open(information.attachmentFilePath, '_blank')
+ // window.open 대신 link 요소 사용
+ const link = document.createElement('a')
+ link.href = information.attachmentFilePath
+ link.target = '_blank'
+ link.rel = 'noopener noreferrer'
+ document.body.appendChild(link)
+ link.click()
+ document.body.removeChild(link)
}
}
|
