Merge pull request #1345 from appwrite/fix-mobile-support-modal-not-closing

fix: support modal doens't close after button click
This commit is contained in:
Torsten Dittmann authored and GitHub committed 2024-09-10 10:03:18 +02:00
commit 8eb829741c
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -3,6 +3,7 @@
import { trackEvent } from '$lib/actions/analytics';
import { Form } from '$lib/elements/forms';
import { disableCommands } from '$lib/commandCenter';
import { beforeNavigate } from '$app/navigation';
export let show = false;
export let size: 'small' | 'big' | 'huge' = null;
@@ -19,6 +20,10 @@
let alert: HTMLElement;
beforeNavigate(() => {
show = false;
});
$: $disableCommands(show);
$: if (error) {
+2 -1
View File
@@ -6,7 +6,8 @@ beforeAll(() => {
browser: true
}));
vi.mock('$app/navigation', () => ({
goto: vi.fn()
goto: vi.fn(),
beforeNavigate: vi.fn()
}));
vi.mock('$app/environment', () => ({
dev: true,