
This is a (multiple allowed):
What you did
OK, so in my route i have
...
{
path: '/event/',
popup: {
componentUrl: './components/modal.html',
},
},
...
And then on my modal component page:
<template>
<div class="popup">
<div class="view">
<div class="page">
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a href="#" class="link popup-close">
<i class="material-icons">clear</i>
</a>
</div>
<div class="title">Title</div>
<div>TEST</div>
</div>
</div>
</div>
</div>
</div>
</template>
<style>
</style>
<script>
return {};
</script>
Then i have a link in a panel on the main index page:
<p><a href="/event/" > event </a></p>
Expected Behavior
Create only 1 DOM popup.
Actual Behavior
After clicking the link it opens the modal using the router componentUrl. Which is fine, but after closing the modal, and clicking again, on the link, i notice it creates 2 DOM popups.
By the way, any chance that on close popup the DOM is not destroyed? i would like to preserve the DOM of that type of modal, in case i want to reopen the modal again and keep the "input" form filled. The DOM for that modal is updated by some methods, and i would like to be able to toggle etc $$(element).hide() some elements, and keep that state even if its closed. And i need to have those ids available in DOM:
This is a (multiple allowed):
bug
enhancement
feature-discussion (RFC)
Framework7 Version: 2.0.10
What you did
OK, so in my route i have
And then on my modal component page:
Then i have a link in a panel on the main index page:
<p><a href="/event/" > event </a></p>Expected Behavior
Create only 1 DOM popup.
Actual Behavior
After clicking the link it opens the modal using the router componentUrl. Which is fine, but after closing the modal, and clicking again, on the link, i notice it creates 2 DOM popups.
By the way, any chance that on close popup the DOM is not destroyed? i would like to preserve the DOM of that type of modal, in case i want to reopen the modal again and keep the "input" form filled. The DOM for that modal is updated by some methods, and i would like to be able to toggle etc $$(element).hide() some elements, and keep that state even if its closed. And i need to have those ids available in DOM: