Skip to content

Commit b999075

Browse files
committed
fix: add disabled attribute to prevent checkbox interaction when no options selected
1 parent 484d3a8 commit b999075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webview-ui/src/components/chat/AutoApproveMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
173173
content={!hasEnabledOptions ? t("chat:autoApprove.selectOptionsFirst") : undefined}>
174174
<VSCodeCheckbox
175175
checked={effectiveAutoApprovalEnabled}
176+
disabled={!hasEnabledOptions}
176177
aria-label={
177178
hasEnabledOptions
178179
? t("chat:autoApprove.toggleAriaLabel")

0 commit comments

Comments
 (0)