From ac5775c723894b6e53586026a7bdf572925c1964 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sat, 30 Aug 2025 08:30:15 +0000 Subject: [PATCH] fix: resolve IconButton onClick handler issue preventing clicks The IconButton component was conditionally setting the onClick handler based on the disabled state, which could prevent clicks from being handled properly when onClick was undefined. The button now always passes through the onClick handler and relies on the disabled attribute to prevent clicks when disabled. Fixes #7552 --- webview-ui/src/components/chat/IconButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webview-ui/src/components/chat/IconButton.tsx b/webview-ui/src/components/chat/IconButton.tsx index 00210ac5b3..989da0a42e 100644 --- a/webview-ui/src/components/chat/IconButton.tsx +++ b/webview-ui/src/components/chat/IconButton.tsx @@ -39,7 +39,7 @@ export const IconButton: React.FC = ({ className, )} disabled={disabled} - onClick={!disabled ? onClick : undefined} + onClick={onClick} style={{ fontSize: 16.5, ...style }} {...props}>