From 969c25b56f6d29d7ffa4bc2ce04c5fb4e5846b34 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 14 Aug 2025 11:54:47 +0000 Subject: (대표님) 정규벤더등록, 벤더문서관리, 벤더데이터입력, 첨부파일관리 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/information/information-button.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'components/information/information-button.tsx') 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) } } -- cgit v1.2.3