cancel
Showing results for 
Search instead for 
Did you mean: 

Fragment opens up and then closes immediately on navigation to another view

former_member200679
Participant
0 Kudos

Hi,

I have a fragment which opens up in 2nd view. I tried to open it in onInit, onBeforeRendering,onAfterRendering and onRouteMatched after navigating from 1st view. The fragement does open for few seconds and then closes itself.

What i observed during debugging is that, on click of navigate button,

Fragment was getting opened first(fragment open call in onRouteMatch of 2nd view) and then the app was getting navigated to 2nd view.

I did find a workaround, which was to add 0 millisecond jquery delay call and opening fragment inside jquery delay function.

I wanted to know if there is another way to handle this kind of situation.

Please do post your suggestions.

Thanks,

Saurabh.

irfan_gokak
Contributor
0 Kudos

Adding it in onAfterRendering function it didn't worked???

Accepted Solutions (0)

Answers (0)