suppress a11y warning

This commit is contained in:
wuyudi 2023-02-08 22:43:15 +09:00
parent c8f909ed69
commit b45f8c7129
2 changed files with 15 additions and 14 deletions

View File

@ -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) {

View File

@ -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>