Popup opens twice

привет,

I have a f7 app with a popup. It’s routeable popup and content is loaded from AJAX (url):

{
	name: 'popuptest',
	path: '/popuptest/',
	popup: {
		url: './pages/popuptest.html'
	}
}

Popup content starts with:

<div class="popup">
    <div class="view view-init">
        <div class="page">
....

I am calling my popup with this:

<a href="/popuptest/">
<i class="icon material-icons">add</i>
</a>

On first opening popup is normally showing the popup, and on close it closes normally. After that when I try to open popup for second time (and each other time) popup opens twice.

But when I use this in the routes instead everything is working fine:

{
	name: 'popuptest',
	path: '/popuptest/',
	popup: {
		content: `<div class="popup">
                                <div class="view view-init">
                                     <div class="page">
                            ....`
	}
}

Is it a bug or I am doing something wrong?

1 Like

Thanks, there was an issue with it. Already fixed in repo, so will be fixed in next release

Hey @nolimits4web can you please link the commit where it’s fixed?

Here https://github.com/framework7io/framework7/commit/fbdc1fab4e4bde15187afdb33c828ca2c8384ca9

1 Like