File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
platform/nativescript/runtime/components Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,16 @@ export default {
23
23
if ( frame && ! frame . firstPageMounted && ! frame . $el . nativeView . currentPage ) {
24
24
frame . firstPageMounted = true
25
25
frame . notifyFirstPageMounted ( this )
26
+ } else if ( frame && frame . firstPageMounted ) {
27
+ // Navigate the frame to the new page, clearing its history, since the intention of replacing
28
+ // the only <Page> child of a frame is that we want that page to be shown instead of the
29
+ // current one. Do not animate as this is a replacement not a regular navigation.
30
+ frame . navigate ( {
31
+ backstackVisible : this . backstackVisible ,
32
+ clearHistory : true ,
33
+ animated : false ,
34
+ create : ( ) => this . $el . nativeView
35
+ } )
26
36
}
27
37
28
38
const handler = e => {
You can’t perform that action at this time.
0 commit comments