Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Routable Popup Handle Close Event

See original GitHub issue
  • Framework7 version: 3.1.1
  • Platform and Target: Chrome Browser and iOS cordova app

Describe the bug

How to handle close event of routable popup?

I have created on poup which is open from one page, and when popup close then i want to handle that closed poup event same as we done for dynamic popup from where popup open.

I am using below method to load popup:

// Load Popup from component file
    path: '/popup-component/',
    loginScreen: {
      componentUrl: './popup-component.html',
      /* popup-component.html contains:
          <div class="popup-screen">
            <div class="view">
              <div class="page">

Thanks Hiren Raiyani

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

nolimits4webcommented, Sep 13, 2018

Same way, in routable popup component you handle popup close event, like:

onPopupClose() {

and other “parent” component you can listen for such event:

app.on('my-awesome-popup-close', () => {
  // do something
webenformasyoncommented, Oct 1, 2018

component page:

mounted() {
      var self = this;
      self.$app.on('new-photo-added', (imageName, imageData) => {
        console.log('new-photo-added ');
        //if (imageName != self.$route.context.imageName) return;

when i press back on navbar then reopen the page link using this event throws an error 'Error in Success callbackId: … : TypeError: undefined is not an object (evaluating ‘self.$route.context’) ’

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's the correct way to open routable popup/modal ...
Open sandbox app · Verify that main links on home page work · Click on Search2 in header to open Search 2 popup...
Read more >
How to handle the close event of Bootstrap popup
Use the event.. $('#myModal').on('', function (e) { //do something.. }).
Read more >
How to make routable modals in react with react-router
goBack() to close the modal, if it wasn't opened from the parent page. I ended up pushing a new route to the parent...
Read more >
Managing Confirm And Prompt Modals Outside Of The Router ...
Ben Nadel explores one approach to managing Confirm and Prompt modal windows in an Angular 7.2.15 application; but, outside of the Router.
Read more >
Give your modals URL address with Auxiliary Routes in Angular
In this article, I'm going to show you how you can create modals and provide them with the ability to act like a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found