mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
Merge 8b19106ae9
into cde8a79fa8
This commit is contained in:
commit
911a3f655e
1 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,9 @@
|
||||||
{inline && 'bx--dropdown--inline'}
|
{inline && 'bx--dropdown--inline'}
|
||||||
{disabled && 'bx--dropdown--disabled'}
|
{disabled && 'bx--dropdown--disabled'}
|
||||||
{light && 'bx--dropdown--light'}"
|
{light && 'bx--dropdown--light'}"
|
||||||
on:click="{({ target }) => {
|
on:click="{(e) => {
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
const { target } = e;
|
||||||
open = ref.contains(target) ? !open : false;
|
open = ref.contains(target) ? !open : false;
|
||||||
}}"
|
}}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue