Skip to content

Commit

Permalink
Merge pull request rob-balfre#658 from stephenlrandall/master
Browse files Browse the repository at this point in the history
Address ARIA + vite-plugin-svelte warnings
  • Loading branch information
rob-balfre authored Jan 4, 2024
2 parents e15946c + 2ccee4c commit 265182a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 30 deletions.
69 changes: 43 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
},
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.2.1",
"svelte-floating-ui": "1.2.8"
"svelte-floating-ui": "1.5.8"
}
}
5 changes: 3 additions & 2 deletions src/lib/Select.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { beforeUpdate, createEventDispatcher, onDestroy, onMount } from 'svelte';
import { offset, flip, shift } from '@floating-ui/dom';
import { offset, flip, shift } from 'svelte-floating-ui/dom';
import { createFloatingActions } from 'svelte-floating-ui';
const dispatch = createEventDispatcher();
Expand Down Expand Up @@ -691,7 +691,8 @@
class:prefloat
on:scroll={handleListScroll}
on:pointerup|preventDefault|stopPropagation
on:mousedown|preventDefault|stopPropagation>
on:mousedown|preventDefault|stopPropagation
role="none">
{#if $$slots['list-prepend']}<slot name="list-prepend" />{/if}
{#if $$slots.list}<slot name="list" {filteredItems} />
{:else if filteredItems.length > 0}
Expand Down

0 comments on commit 265182a

Please sign in to comment.