mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
Merge branch 'jqlio18/issue1595' of https://github.com/jqlio18/carbon-components-svelte into jqlio18/issue1595
This commit is contained in:
commit
649afa1e14
1 changed files with 2 additions and 0 deletions
|
@ -111,6 +111,7 @@
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
let highlightedIndex = -1;
|
let highlightedIndex = -1;
|
||||||
|
let mainDivRef;
|
||||||
|
|
||||||
$: inline = type === "inline";
|
$: inline = type === "inline";
|
||||||
$: selectedItem = items.find((item) => item.id === selectedId);
|
$: selectedItem = items.find((item) => item.id === selectedId);
|
||||||
|
@ -165,6 +166,7 @@
|
||||||
<svelte:window on:click="{pageClickHandler}" />
|
<svelte:window on:click="{pageClickHandler}" />
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
bind:this="{mainDivRef}"
|
||||||
class:bx--dropdown__wrapper="{true}"
|
class:bx--dropdown__wrapper="{true}"
|
||||||
class:bx--list-box__wrapper="{true}"
|
class:bx--list-box__wrapper="{true}"
|
||||||
class:bx--dropdown__wrapper--inline="{inline}"
|
class:bx--dropdown__wrapper--inline="{inline}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue