mirror of
https://github.com/PaiGramTeam/luoxu-api-pub.git
synced 2024-11-25 09:27:40 +00:00
suppress a11y warning
This commit is contained in:
parent
c8f909ed69
commit
b45f8c7129
@ -13,8 +13,8 @@
|
||||
let result: {
|
||||
messages: {
|
||||
from_name: string;
|
||||
t;
|
||||
edited;
|
||||
t: any;
|
||||
edited: any;
|
||||
group_id: string;
|
||||
id: string;
|
||||
from_id: string;
|
||||
@ -103,7 +103,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
async function do_search(more?: HTMLMouseEventHandler<HTMLButtonElement>) {
|
||||
async function do_search(more?: any) {
|
||||
abort.abort();
|
||||
abort = new AbortController();
|
||||
if (!group && !islocal) {
|
||||
|
@ -144,17 +144,18 @@
|
||||
alt=""
|
||||
src="{url}/avatar/{selected ? selected : 'nobody'}.jpg"
|
||||
/>
|
||||
<ul bind:this={ul}>
|
||||
<button
|
||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||
<ul
|
||||
bind:this={ul}
|
||||
on:click={select_by_click}
|
||||
on:mousedown|preventDefault={() => {}}
|
||||
class:hidden={names.length === 0 || should_hide}
|
||||
>{#each names as name, i (name)}
|
||||
>
|
||||
{#each names as name, i (name)}
|
||||
<li data-idx={i} class:selected={i === selected_idx} title={name[1]}>
|
||||
<img src="{url}/avatar/{name[0]}.jpg" alt="avatar" />{name[1]}
|
||||
</li>
|
||||
{/each}
|
||||
</button>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user