fix event being passed to do_search

This commit is contained in:
lilydjwg 2021-10-02 16:56:37 +08:00
parent 466ca11cbb
commit 15ea98e281

View File

@ -125,7 +125,7 @@
on:input={() => error = ''}
on:keyup={e => {if(e.key == 'Enter'){do_search()}}}
/>
<button on:click={do_search}>搜索</button>
<button on:click={() => do_search()}>搜索</button>
</div>
{#if error}