mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41: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;
|
let timeoutId = undefined;
|
||||||
|
|
||||||
function close(closeFromTimeout) {
|
function close(closeFromTimeout) {
|
||||||
const shouldContinue = dispatch(
|
open = false;
|
||||||
"close",
|
dispatch("close", { timeout: closeFromTimeout === true });
|
||||||
{ timeout: closeFromTimeout === true },
|
|
||||||
{ cancelable: true }
|
|
||||||
);
|
|
||||||
if (shouldContinue) {
|
|
||||||
open = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
|
@ -43,14 +43,8 @@
|
||||||
let timeoutId = undefined;
|
let timeoutId = undefined;
|
||||||
|
|
||||||
function close(closeFromTimeout) {
|
function close(closeFromTimeout) {
|
||||||
const shouldContinue = dispatch(
|
open = false;
|
||||||
"close",
|
dispatch("close", { timeout: closeFromTimeout === true });
|
||||||
{ timeout: closeFromTimeout === true },
|
|
||||||
{ cancelable: true }
|
|
||||||
);
|
|
||||||
if (shouldContinue) {
|
|
||||||
open = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue