Skip to content

Commit d92296c

Browse files
committed
fix: inconsistent search input when switching between search modes
1 parent 7b44676 commit d92296c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Operations.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const Operations: ComponentType = withSuspensable(() => {
119119
large
120120
type="search"
121121
enterKeyHint="search"
122+
defaultValue={queryParams.keyword}
122123
onChange={(e) =>
123124
debouncedSetQueryParams((old) => ({
124125
...old,
@@ -199,6 +200,7 @@ export const Operations: ComponentType = withSuspensable(() => {
199200
large
200201
type="search"
201202
enterKeyHint="search"
203+
defaultValue={queryParams.keyword}
202204
onChange={(e) =>
203205
debouncedSetQueryParams((old) => ({
204206
...old,

0 commit comments

Comments
 (0)