Skip to content

Commit

Permalink
fix: made search input an uncontrolled component
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhwang committed Apr 28, 2023
1 parent 6275e01 commit 704d9fe
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 @@ -94,7 +94,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 704d9fe

Please sign in to comment.