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

bug: Ionic + Vue: Overlapping <ion-page> After Navigation (Display: inline) #30109

Open
3 tasks done
arpitpatel901 opened this issue Jan 3, 2025 · 0 comments
Open
3 tasks done
Labels

Comments

@arpitpatel901
Copy link

arpitpatel901 commented Jan 3, 2025

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When navigating from “web-home” → “login,” both elements remain in the DOM at display: inline;. The old “web-home” is visibly stacked underneath the “login” page.
Manually refreshing the browser removes the “web-home” , leaving only the “login” page, which then appears correctly.
Going back from “login” triggers an Ionic warning that the path /web-home “does not have the required component,” even though is present in WebHome.vue. It suggests Ionic isn’t recognizing it for some reason.

Expected Behavior

Navigating to “login” should animate or transition away from “web-home” so the old is removed (or hidden) before the new one appears.There should only be one active in the DOM at a time for the active route, avoiding any visual overlap.

Steps to Reproduce

I’ve created a minimal sample project here:
https://github.com/arpitpatel901/tlbot_frontend/tree/sample_project

Simply clone it, checkout sample_project branch, run npm install and npm run dev

Then try to navigate from localhost:5173/ -> localhost:5173/login from the navbar

Code Reproduction URL

https://github.com/arpitpatel901/tlbot_frontend/tree/sample_project

Ionic Info

arpit@arpit-Precision-5540:~/Desktop/AI_Experiments/tlbot_website/frontend$ ionic info
[WARN] You are not in an Ionic project directory. Project context may be missing.

Ionic:

   Ionic CLI : 7.2.0

Utility:

   cordova-res : not installed globally
   native-run  : not installed globally

System:

   NodeJS : v20.18.0
   npm    : 10.8.2
   OS     : Linux 5.15

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant