If you have a link/button in a panel, and the link/button opens another page, the panel should not close visually. Technically is could close after the animation ended.
Here's a test page. Look when you animate to the other page; you'll notice that the panel closes during the animation.
The issue can be fixed by changing pagebeforehide to pagehide on line 8122 of jquery.mobile-1.3.0-beta.1.js. This corresponds to line 233 of js/widgets/panel.js in the current commit.
Thanks a lot for the complete issue report and providing a PR!
Agreed, we should bind to pagehidehere. I am going to merge your commit.
Panel: changed event listener. Fixed #5480 - Panel should close after…
…, and not during, page animation