You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(refresher): mode does not account for child pages with global mode set #29137
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
When global mode is defined e.g. in angular using IonicModule.forRoot({ mode: 'ios' }), ion-refresher does not respect custom mode ('md') defined on component level on child pages.
Bildschirmaufnahme.2024-03-11.um.14.23.11.mov
Expected Behavior
mode on component level for ion-refresher should be applied also on child pages
changed the title [-]bug(refresher): mode does not account for child pages with global mode[/-][+]bug(refresher): mode does not account for child pages with global mode set[/+]on Mar 11, 2024
The issue is due to the RouterModule.forChild() setup in src/app/home/home-page.module.ts, it needs some adjustments to render the correct mode. You can use the code snippet below instead of your current one, and then you'll see that the ion-refresher will work properly, even if your page is nested inside other pages.
thank you for your snippet!
After further investigation, this bug does not only occur on child pages, but also on all tab pages where only the first initialized tab is working.
I extended the stackblitz, where I also added the refresher to the radio tab.
open listen now tab
pull-to-refresh
refresh with md design works
switch to radio tab
pull-to-refresh
web refresher is visible
since this bug also occurs on sibling pages where it cannot fixed by router as you suggested, is it possible to reopen the ticket?
@DwieDima Please start a new issue just for this particular bug. We need each problem to have its own space so we can fix them properly. I highly recommend stripping the project down by removing the child pages since the new issue would focus on the tab pages. Thanks for understanding!
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.
Activity
[-]bug(refresher): mode does not account for child pages with global mode[/-][+]bug(refresher): mode does not account for child pages with global mode set[/+]thetaPC commentedon Mar 12, 2024
Thank you for submitting the issue!
The issue is due to the
RouterModule.forChild()setup insrc/app/home/home-page.module.ts, it needs some adjustments to render the correct mode. You can use the code snippet below instead of your current one, and then you'll see that theion-refresherwill work properly, even if your page is nested inside other pages.If there are any other problems, please open a new issue.
DwieDima commentedon Mar 14, 2024
Hi @thetaPC
thank you for your snippet!
After further investigation, this bug does not only occur on child pages, but also on all tab pages where only the first initialized tab is working.
I extended the stackblitz, where I also added the refresher to the radio tab.
since this bug also occurs on sibling pages where it cannot fixed by router as you suggested, is it possible to reopen the ticket?
Bildschirmaufnahme.2024-03-14.um.12.06.39.mov
thetaPC commentedon Mar 15, 2024
@DwieDima Please start a new issue just for this particular bug. We need each problem to have its own space so we can fix them properly. I highly recommend stripping the project down by removing the child pages since the new issue would focus on the tab pages. Thanks for understanding!
ionitron-bot commentedon Apr 14, 2024
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.