Skip to content

Commit

Permalink
Merge pull request #1348 from adamhwang/fast-search
Browse files Browse the repository at this point in the history
fix: made search input an uncontrolled component
  • Loading branch information
afshinm authored Mar 3, 2024
2 parents a0dd2d1 + 704d9fe commit cf5618d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/plugin/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function Search() {
aria-label={_('search.placeholder')}
onInput={debouncedOnInput}
className={classJoin(className('input'), className('search', 'input'))}
value={state?.keyword || ''}
defaultValue={state?.keyword || ''}
/>
</div>
);
Expand Down

0 comments on commit cf5618d

Please sign in to comment.