Skip to content

Commit cf5618d

Browse files
authored
Merge pull request #1348 from adamhwang/fast-search
fix: made search input an uncontrolled component
2 parents a0dd2d1 + 704d9fe commit cf5618d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/plugin/search/search.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function Search() {
9696
aria-label={_('search.placeholder')}
9797
onInput={debouncedOnInput}
9898
className={classJoin(className('input'), className('search', 'input'))}
99-
value={state?.keyword || ''}
99+
defaultValue={state?.keyword || ''}
100100
/>
101101
</div>
102102
);

0 commit comments

Comments
 (0)