diff --git a/resources/views/daily-logs/index.blade.php b/resources/views/daily-logs/index.blade.php
index 53035581..ff830a65 100644
--- a/resources/views/daily-logs/index.blade.php
+++ b/resources/views/daily-logs/index.blade.php
@@ -198,7 +198,7 @@ class="day-card w-full text-left p-3 rounded-lg border-2 transition-all hover:sh
{{ $issue->title }}
@@ -300,7 +300,7 @@ class="p-0.5 text-green-500 hover:bg-green-50 rounded" title="해결">
{{ $task->title }}
@@ -1209,11 +1209,17 @@ function confirmForceDelete(id, date) {
}
// ========================================
- // 주의 필요 항목 펼치기/접기
+ // 주의 필요 항목 펼치기/접기 (이벤트 위임)
// ========================================
- function toggleAttentionItem(textEl) {
+ document.addEventListener('click', function(e) {
+ const textEl = e.target.closest('[data-toggle-attention]');
+ if (!textEl) return;
+
const itemDiv = textEl.closest('[data-issue-id], [data-task-id]');
+ if (!itemDiv) return;
+
const fullDiv = itemDiv.querySelector('.attention-item-full');
+ if (!fullDiv) return;
if (fullDiv.classList.contains('hidden')) {
// 펼치기: 상세 정보 표시 + 제목 전체 표시
@@ -1226,7 +1232,7 @@ function toggleAttentionItem(textEl) {
textEl.classList.add('truncate');
textEl.classList.remove('text-red-600');
}
- }
+ });
// ========================================
// 미완료 항목 펼치기/접기