Comments (14)
When I navigate to the third tab and click logout button (content-link to login.html),The login page has been load to the first tab content and the screen stay in the third tab.the right thing is the screen should change and stay in the first tab.what should I do?
from framework7.
@BelinChung i can't say like that. It will be good to see live example, or JSFiddle, or maybe video screencast of problem
from framework7.
@matthewball do you still have your issue?
from framework7.
@nolimits4web There are a live example in http://m.hiliaox.com/
That is a lot to follow so here it is again:
login -> navigate to "setting" tab -> click "logout" button
The login.html has been load in "OurView" content,But the screen stay in setting tab.
from framework7.
Everything is correct. Because you load page in inactive tab, you just need to switch tab manually:
$$('.logout-button').on('click', function(){
//Emulate click on first tab-link to switch tab
$$('.tabbar .tab-link').eq(0).click();
});
from framework7.
But you should probably do that not on login-button click, but in your Confirm callback
from framework7.
@nolimits4web Thanks.
Maybe @matthewball has the same question as I do.
from framework7.
$$('.tabbar .tab-link').eq(0).trigger('click');
//$$('.tabbar .tab-link').eq(0).click();
I found it does not work on touch devices. :(
from framework7.
Ok, you can do it then like that:
$$('.logout-button').on('click', function(){
//Emulate click on first tab-link to switch tab
$$('.tabbar .tab-link').removeClass('active');
$$('.tabbar .tab-link').eq(0).addClass('active');
$$('.tabs .tab.active').removeClass('active');
$$('.tabs .tab').eq(0).addClass('active');
});
from framework7.
For me, I am still having issues with the panels not linking after visiting another page.
from framework7.
@matthewball That is somewhere problem on your side, because it can't just stop working. And i can't help you much because you don't post any example ;) As you may see in kitchen sink and in all examples it works fine :)
from framework7.
Sorry, I have been waiting for my app to be published on app store but you can see for yourself here:
from framework7.
Ok, i opened it. So everything seems to be works great. What i do:
- From Home tab i go to Firmwares tab
- I click, for example iOS 5,
- On iOS 5 page i click Back link in navbar
- Then i switch to Home tab again
- I switch to Firmwares again
- And links here are still working as expected
Where is the problem?
from framework7.
Closing as seems to be problem is gone
from framework7.
Related Issues (20)
- Wrong stack trace in case of error in the router component
- sheet.setSwipeStep is not a function
- Problem with navbar hideOnPageScroll and subnavbar/list-groups
- Problem with navbar hideOnPageScroll and master-detail-view
- Wrong React interfaces are used for the Svelte import components. HOT 6
- Svelte. Framework7 popup visibility binding is broken. HOT 1
- Svelte 4 warning "no exports condition" when framework 7 library is used. HOT 1
- Svelte. Popup/f7Popup backdrop is not disposed onDestroy HOT 1
- Svelte. Framework 7 build warning
- Problem closing popups on ios HOT 13
- Swipeable tab content is not loaded HOT 1
- MAIN VIEW CRASH AND RELOAD AGAIN BUG HOT 1
- Route async tablet/movil HOT 1
- Picker change its value at random on Safari
- Svelte. Popup two way binding to opened state does not work. (with demo)
- Svelte. Popup/f7Popup backdrop is not disposed onDestroy (With demo)
- Svelte. Popover cannot be closed when link is external and routing is prevented. (With DEMO)
- Svelte. Popover binding on opened property is ignored. (with demo)
- Svelte. Popup "animate" propery is ignored. (with demo)
- Core modal. Sometimes parameters are disposed due to the rase condition.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework7.