Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activated not working with EdgeNavigator #1135

Open
trusis666 opened this issue Mar 29, 2018 · 0 comments
Open

Activated not working with EdgeNavigator #1135

trusis666 opened this issue Mar 29, 2018 · 0 comments
Projects

Comments

@trusis666
Copy link

Reported in forum.

Fuse 1.8.1
MacOs HighSiera

Tested on Nexus 5 / 6.0

Issue

In a page combining EdgeNavigator and PageControl the Activated event does not trigger when coming back from another page using goBack() / backbutton.

Example where it happens in the Preview mode. Swiping between Page X and Page 1 triggers the activated call, but going to Page 1 then using back does not. Remove the EdgeNavigator and it works fine.

Code to reproduce:

<App>
	<Router ux:Name="router"/>
	<JavaScript>
	    function goToPage() {
	        console.log("Go page");
	        router.push("goto_page");
	    }

	    function page1_activated() {
	        console.log("page1_activated");
	    }

	    module.exports = {
	        goToPage : goToPage,
	        page1_activated : page1_activated
	    };
	</JavaScript>

	<ClientPanel>           
	    <Navigator DefaultPath="home">
	        <Page ux:Template="home">
	        	<EdgeNavigator>
	                <PageControl ux:Name="containerControl">
	                    <Page ux:Name="page_x">
	                        <Text Value="Page X" />
	                    </Page>                 
	                    <Page ux:Name="page_1">
	                        <Activated>
	                            <Callback Handler="{page1_activated}"/>
	                        </Activated>                        
	                        <Panel Tapped="{goToPage}">
	                        <Text Value="Page 1" />
	                        </Panel>
	                    </Page>
	                </PageControl>
	            </EdgeNavigator>
	        </Page>
	        <Page ux:Template="goto_page">
	            <Text Value="Page 2" />
	        </Page>         
	    </Navigator>
	</ClientPanel>
</App>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Core
  
Triage
Development

No branches or pull requests

1 participant