Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svelte. Popup/f7Popup backdrop is not disposed onDestroy (With demo) #4266

Open
ievgennaida opened this issue Apr 22, 2024 · 0 comments
Open

Comments

@ievgennaida
Copy link

Framework 7 popup backdrop remains when popup is unmounted in svelte.

  "dependencies": {
    "framework7": "^8.3.0",
    "framework7-svelte": "^8.3.0",
    "svelte": "^4.2.0"
  },
  "devDependencies": {
    "@sveltejs/vite-plugin-svelte": "^2.4.5",
    "vite": "^4.4.9"
  }

DEMO LINK:
https://codesandbox.io/p/devbox/loving-visvesvaraya-vhyrxx?file=%2Fsrc%2Fcomponents%2Fapp.svelte%3A12%2C6

Platform and Target: Chrome

Describe the bug

  1. Open demo
  2. Click button to open popup
  3. Simulate that component is unmounted (Ex: using ifs in svelte)
  4. See that component is not unmouting related backdrop on dispose.

Expected behavior
Popup is closed and unmounted with the backdrop overlay.

Actual Behavior
Popup is closed but gray backdrop is displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant