-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: ion-popover doesnt have backdrop in tree-shaken build (react & vue) #24449
Comments
Thanks for the issue! This issue has been labeled as In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly. Thank you! |
|
Looks like this is a similar issue, but not resolved with the mentioned PR. I'll track this as a bug in v6. The ion-backdrop custom element isn't being defined with the production build. |
Hello @JohnDeved thanks for the issue! I have an open PR that addresses the issue. The resolution affects both The Core team is mostly out on vacation/holidays for the remainder of the year and we won't be pushing a new release of Ionic until after the New Year. I've created a dev build if you'd like to confirm in your own projects: npm install @ionic/react@6.0.1-dev.1640031995.c1d4978 I appreciate the reproduction application and notes; they were super helpful debugging the issue! |
@sean-perkins thank you so much for tackling this issue, very quick and good work 👍 |
Hey @sean-perkins, I tried using the development build you provided, but it seems like I'm running into another error: I've updated @JohnDeved's repo to use the dev build you provided. Also, https://6b1da293.ionic-popover-bug.pages.dev/ is a preview build (The actual error is only visible while running on the dev server though). |
Hi, the same also seems to happen with the vue.js version, |
Here a reproducer for the vue.js version. The README.md contains the instructions to reproduce the problem. Let me kwow if I need to open a separate issue. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
in production, tree-shaken build, (
npm run build && npx serve -s build
)popover are not dismissable by clicking on the backdrop. (no backdrop seems to show up)
its also possible to scroll while the popup is open.
I noticed this behavior when upgrading from v5 to v6
Screen.Recording.2021-12-20.at.11.52.13.mov
hosted production build: https://8179360d.ionic-popover-bug.pages.dev/
Expected Behavior
the backdrop should show up and it should be dismissable by clicking on it.
it also shouldn't be possible to scroll away while the popover is open.
interestingly enough everything seems to work fine in dev mode (
npm start
)Screen.Recording.2021-12-20.at.12.01.22.mov
Steps to Reproduce
The only step to reproduce is to use popover in any way with react ionic and build to production.
just clone reproduction repo and create and serve a production build to encounter the issues.
Code Reproduction URL
https://github.com/JohnDeved/ionic-popover-bug
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: