Skip to content

Commit

Permalink
fix firefox-specific focus related issue, fix #109
Browse files Browse the repository at this point in the history
  • Loading branch information
mskocik committed May 9, 2022
1 parent b8d710f commit 743ed3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dropdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@
</script>

{#if isMounted && renderDropdown}
<div class="sv-dropdown" class:is-virtual={virtualList} aria-expanded={$hasDropdownOpened} tabindex="-1"
<div class="sv-dropdown" class:is-virtual={virtualList} aria-expanded={$hasDropdownOpened}
on:mousedown|preventDefault
>
<div class="sv-dropdown-scroll" class:is-empty={!items.length} bind:this={scrollContainer}>
<div class="sv-dropdown-scroll" class:is-empty={!items.length} bind:this={scrollContainer} tabindex="-1" >
<div class="sv-dropdown-content" bind:this={container} class:max-reached={maxReached}>
{#if items.length}
{#if virtualList}
Expand Down

0 comments on commit 743ed3b

Please sign in to comment.