mirror of
https://github.com/PaiGramTeam/luoxu-api-pub.git
synced 2024-11-25 17:35:39 +00:00
leave more time to update_value() before hide
This commit is contained in:
parent
c754fe3a90
commit
ead237f941
@ -127,7 +127,7 @@
|
|||||||
<input bind:this={input} type="text"
|
<input bind:this={input} type="text"
|
||||||
on:input={() => {should_hide=false;may_complete()}}
|
on:input={() => {should_hide=false;may_complete()}}
|
||||||
on:focus={() => should_hide=false}
|
on:focus={() => should_hide=false}
|
||||||
on:blur={() => {setTimeout(() => should_hide=true, 100);update_value()}}
|
on:blur={() => {setTimeout(() => should_hide=true, 500);update_value()}}
|
||||||
on:keydown={select_by_key}
|
on:keydown={select_by_key}
|
||||||
/>
|
/>
|
||||||
<img class="selected-avatar" alt="" src="{url}/avatar/{selected?selected:'nobody'}.jpg"/>
|
<img class="selected-avatar" alt="" src="{url}/avatar/{selected?selected:'nobody'}.jpg"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user