]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
Svelte 4.0 trigger a new linter warning
authormarc tobias <mtmail@gmx.net>
Mon, 26 Jun 2023 23:08:15 +0000 (01:08 +0200)
committermarc tobias <mtmail@gmx.net>
Mon, 26 Jun 2023 23:08:15 +0000 (01:08 +0200)
src/components/ResultsList.svelte

index 0e6b144f0427ee3cd7dfc593a1e9131b23b1eb34..8935ec1b1a2a7d17dc80dd8875b990c1788d7fa5 100644 (file)
 </script>
 
 {#if aSearchResults && aSearchResults.length > 0}
-  <div id="searchresults">
+  <div id="searchresults" role="list">
 
     {#each aSearchResults as aResult, iResNum}
+      <!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
       <div class="result"
            class:highlight={iResNum === iHighlightNum}
+           role="listitem"
            data-position="{iResNum}"
            on:click|stopPropagation={handleClick}
            on:keypress|stopPropagation={handleClick}>