Smart Select re-init page history -1, when option select and close
See original GitHub issueThis is a (multiple allowed):
-
bug
-
enhancement
-
feature-discussion (RFC)
-
Framework7 Version: 1.6.4
-
Platform and Target: CORDOVA
What you did
I have page_1 wich calls page_2 via a simple href=‘’ page_2 has an smartselect like this:
<div data-page="comprobantes-cabecera" class="page">
<div class="navbar">
<div class="navbar-inner">
<div class="left"><a href="#" class="back link icon-only"><i class="icon icon-back"></i></a></div>
<div class="center">Datos de la cabecera</div>
</div>
</div>
<div class="page-content">
<form class="list-block inputs-list">
<ul>
<li>
<a href="#" class="item-link smart-select">
<select name="cmb_comprobante_tipo2" id="cmb_comprobante_tipo">
<option value='1'> val 1</option>
<option value='2'> val 2</option>
<option value='3'> val 3</option>
<option value='4'> val 4</option>
</select>
<div class="item-content">
<div class="item-media"><i class="icon material-icons">receipt</i></div>
<div class="item-inner">
<div class="item-title">Tipo de comprobante</div>
<div class="item-after comprobante-tipo-desc">FACTURA C</div></div>
</div>
</a>
</li>
MyApp is defined like this, so when you select in any option, it close the smartselect
var myApp = new Framework7({
pushState: false,
swipePanel: 'left',
material: true,
materialPageLoadDelay:0,
materialRipple:true,
materialPreloaderHtml:true,
precompileTemplates: true,
cache:true,
template7Pages: true, // enable Template7 rendering for Ajax and Dynamic pages
fastClicks:true,
dynamicPageUrl: 'content-{{name}}',
smartSelectBackOnSelect: true,
// ... other parameters
});
BUT, when I click in an option and close the smartselect page, it refresh me page_1 executing the onPageInit method. I don’t know if it’s the expected behavior but for me is not. ¿why re-init me the first page?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Smart select | Framework7 Documentation
We can specify Smart Select page' list view (option) icons by using data-option-icon attributes on <option> elements: data-option-icon - if it just a...
Read more >Framework7 Smart Select show selected item
After a reload or closing the page I read in the cookie an select the item. That works. But, I alaways the "Please...
Read more >How to do Hard Refresh in Chrome, Firefox, Edge and ...
There are two ways to hard refresh or reload Chrome, Firefox, IE and Mac's browser: hold down ctrl and click F5 or hold...
Read more >Clear your web browser's cache, cookies, and history - IU KB
At the top of the "Clear browsing data" window, click Advanced. · Select the following: Browsing history; Download history; Cookies and other ...
Read more >Open and close tabs in Safari on iPad
Touch and hold the New Tab button , then choose from the list of recently closed tabs. The Safari sidebar on the left...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Expected
This is unexpected. Page 1 has nothing to do with the smart select on page 2. Please fix this bug,