Преглед изворни кода

Fix "Suggest fix" not expanding collapsed log entries (#32015)

GitOrigin-RevId: 9668526a5e388fa7723fab6d394b71b509101360
Copilot пре 5 месеци
родитељ
комит
2fc8ca6e3d

+ 3 - 4
services/web/frontend/js/features/pdf-preview/hooks/use-log-events.ts

@@ -33,10 +33,9 @@ export const useLogEvents = (setShowLogs: (show: boolean) => void) => {
         if (logEntry) {
           scrollIntoView(logEntry)
 
-          const expandCollapseButton =
-            logEntry.querySelector<HTMLButtonElement>(
-              'button[data-action="expand-collapse"]'
-            )
+          const expandCollapseButton = logEntry.querySelector<HTMLElement>(
+            '[data-action="expand-collapse"]'
+          )
 
           const collapsed = expandCollapseButton?.dataset.collapsed === 'true'