Skip to content

Commit

Permalink
fix(admin): keyword search btn click resp
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Mar 6, 2021
1 parent 87efb46 commit 48feb8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/admin/src/pages/manage-comments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ export default function() {
<button
type="submit"
className="btn btn-s"
onClick={e => e.preventDefault() && dispatch({keyword: keywordRef.current.value})}
onClick={e => {
e.preventDefault();
dispatch({keyword: keywordRef.current.value});
}}
>{t('filter')}</button>
</div>
</form>
Expand Down

0 comments on commit 48feb8b

Please sign in to comment.