framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

page.beforeLeave fired when open smartSelect as popover

Open mohshraim opened this issue 8 years ago • 1 comments

  • Framework7 version: 3.2.0
  • Platform and Target: Chrome browser

Describe the bug

I have a page with beforeLeave listener. Page contain popover AND smartSelect display as popover. beforeLeave will not fire when open normal popover.. (correct behaviour). beforeLeave will fire when open smartSelect with openIn: 'popover' (wrong behaviour) ==> i Think

I think targeted behaviour to fire beforeLeave if smartSelect opened on popup maybe.. but not when opened as popover or segment..

Thanks

mohshraim avatar Sep 15 '18 19:09 mohshraim

It is not about page but about route, and route leave happens here so this callback is fired correctly. You need to disable routableModals smart select's parameter

nolimits4web avatar Sep 16 '18 17:09 nolimits4web