Skip to content

Commit 0372e3e

Browse files
fix: Changes AutoSizeInput onChange to onBlur
Previously query was not being changed because AutoSizeInput overrides onChange
1 parent 7477c3e commit 0372e3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/HaystackQueryInput.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function HaystackQueryInput({ query, onChange }: HaystackQueryInputProps)
2020
<AutoSizeInput
2121
minWidth={minWidth}
2222
prefix={<Icon name="angle-right" />}
23-
onChange={onQueryChange}
23+
onBlur={onQueryChange}
2424
value={query.eval}
2525
placeholder={DEFAULT_QUERY.eval}
2626
/>
@@ -32,7 +32,7 @@ export function HaystackQueryInput({ query, onChange }: HaystackQueryInputProps)
3232
<AutoSizeInput
3333
minWidth={minWidth}
3434
prefix={'@'}
35-
onChange={onQueryChange}
35+
onBlur={onQueryChange}
3636
value={query.hisRead}
3737
placeholder={DEFAULT_QUERY.hisRead}
3838
/>
@@ -44,7 +44,7 @@ export function HaystackQueryInput({ query, onChange }: HaystackQueryInputProps)
4444
<AutoSizeInput
4545
minWidth={minWidth}
4646
prefix={<Icon name="filter" />}
47-
onChange={onQueryChange}
47+
onBlur={onQueryChange}
4848
value={query.hisReadFilter}
4949
placeholder={DEFAULT_QUERY.hisReadFilter}
5050
/>
@@ -56,7 +56,7 @@ export function HaystackQueryInput({ query, onChange }: HaystackQueryInputProps)
5656
<AutoSizeInput
5757
minWidth={minWidth}
5858
prefix={<Icon name="filter" />}
59-
onChange={onQueryChange}
59+
onBlur={onQueryChange}
6060
value={query.read}
6161
placeholder={DEFAULT_QUERY.read}
6262
/>

0 commit comments

Comments
 (0)