framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.04k stars 3.23k forks source link

iosDynamicNavbar bugs #4148

Open jacobg opened 1 year ago

jacobg commented 1 year ago

Describe the bug

There are 2 bugs with navbar since updating my app from f7 v5 to v7: 1) navbar sometimes unresponsive after navigating forward 2) navbar sometimes disappears after a short delay after navigating

This occurs when emulating iOS on Mac Chrome. It does not occur when emulating Android, nor does it occur if settings iosDynamicNavbar: false.

To Reproduce

Sorry, I didn't create a minimal reproducible sample to share.

Additional context

The DOM shows that the actual current page not being marked with page-current class; the previous page is still marked current. And its page:afterin event is not getting called. Stepping through the debugger, it shows that the router animation function code calls animationEnd on the page element, but the callback is never received:

(direction === 'forward' ? $newPageEl : $oldPageEl).animationEnd(() => {
      onDone();
    }); // Animate

It doesn’t happen on all pages.