Skip to content

Commit b700779

Browse files
committed
fix: use onChange instead of onInput
1 parent aded381 commit b700779

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/AutoApproveSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const AutoApproveSettings = ({
205205
<div className="flex gap-2">
206206
<Input
207207
value={commandInput}
208-
onInput={(e: any) => setCommandInput(e.target.value)}
208+
onChange={(e: any) => setCommandInput(e.target.value)}
209209
onKeyDown={(e: any) => {
210210
if (e.key === "Enter") {
211211
e.preventDefault()
@@ -234,7 +234,7 @@ export const AutoApproveSettings = ({
234234
}}>
235235
<div className="flex flex-row items-center gap-1">
236236
<div>{cmd}</div>
237-
<X className="text-primary-foreground scale-75" />
237+
<X className="text-foreground scale-75" />
238238
</div>
239239
</Button>
240240
))}

0 commit comments

Comments
 (0)