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
back button when popup is open #150
Comments
No, it is highly depends on layout, and pushState works only for main View. You can just add custom event listener to popstate event:
|
so its not useable except ios :/ there must be a way. |
I 'hacked' it like so(i dont need refresh it run only as application): I still think its need to be solved in the f7 level |
hi Vladimir the popup state should be soft something like: I use it like so:
somewhere in the code:
|
Is this resolved? |
Closed due to no reaction by issue author after several months |
@valnub its not solved but I think that nolimits4web not seeing this as bug |
Well, on iOS this definitely is not a bug because there is no such behavior for pop-up (as there is no physical back button on the device). On Android, yeah one could argue that this needs more refinement. Maybe someone can create a plugin or pull-request to fix this. |
Will this be taken in mind soon? |
I managed to do it as members suggested:
We hope that this will be taken into consideration to have an easy option in next versions. |
@nolimits4web |
Our dirty fix for smart-select popups is this:
But dirty fixes are ugly. It's a framework7 issue, so we hope @nolimits4web has time for it. |
@nolimits4web |
@J05HI With how long these issues have been open i suggest you contribute a 'real implementation' |
@ZanderBrown |
For my apps a use a simple workaround with addClass/removeClass on the body element and my back button check if the body has the class or not before execute any action. |
@tazzkiller |
on your "backbutton" event :
|
I don't think this will get a fix in Framework7 1.x - As the work on v2 has begun, it might be fixed there as it is more a feature-request rather than a bug. |
Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity. If this issue is still actual and reproducible for latest version of Framework7, please create new issue and fill the issue template correctly:
|
@nolimits4web |
when pushState: true.
1.when popup is open and you press back button(on browser or android not the framework back button) the popup stays and the pages under the popup change.
is there a way to push a state on popup open? so the back button will close the popup?
The text was updated successfully, but these errors were encountered: