mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
This reverts commit 924b6d352e
.
This commit is contained in:
parent
5fa07ab44b
commit
052acfc2ce
2 changed files with 4 additions and 16 deletions
|
@ -40,14 +40,8 @@
|
|||
let timeoutId = undefined;
|
||||
|
||||
function close(closeFromTimeout) {
|
||||
const shouldContinue = dispatch(
|
||||
"close",
|
||||
{ timeout: closeFromTimeout === true },
|
||||
{ cancelable: true }
|
||||
);
|
||||
if (shouldContinue) {
|
||||
open = false;
|
||||
}
|
||||
open = false;
|
||||
dispatch("close", { timeout: closeFromTimeout === true });
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
|
|
|
@ -43,14 +43,8 @@
|
|||
let timeoutId = undefined;
|
||||
|
||||
function close(closeFromTimeout) {
|
||||
const shouldContinue = dispatch(
|
||||
"close",
|
||||
{ timeout: closeFromTimeout === true },
|
||||
{ cancelable: true }
|
||||
);
|
||||
if (shouldContinue) {
|
||||
open = false;
|
||||
}
|
||||
open = false;
|
||||
dispatch("close", { timeout: closeFromTimeout === true });
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue