File tree Expand file tree Collapse file tree 2 files changed +1
-50
lines changed
platform/nativescript/plugins Expand file tree Collapse file tree 2 files changed +1
-50
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default {
85
85
const modalPage = navEntryInstance . $mount ( ) . $el . nativeView
86
86
updateDevtools ( )
87
87
88
- this . $el . nativeView . showModal ( modalPage , options )
88
+ this . $root . nativeView . showModal ( modalPage , options )
89
89
} )
90
90
}
91
91
}
Original file line number Diff line number Diff line change @@ -83,52 +83,3 @@ new Vue({
83
83
</GridLayout>
84
84
`
85
85
} ) . $start ( )
86
-
87
- // Working code. Please comment the previous Vue instance and
88
- // uncomment the following commented code in order to workaround the issue
89
- // The workaround is opening the modal in the root component
90
- /*
91
- const TabContentWorking = {
92
- template: `
93
- <GridLayout rows="auto, auto">
94
- <Label text="This is the home page." row="0" />
95
- <Button text="Open Wizard" row="1" @tap ="emitOpenEvent" />
96
- </GridLayout>
97
- `,
98
- methods: {
99
- emitOpenEvent() {
100
- this.$emit('show')
101
- }
102
- }
103
- }
104
-
105
- new Vue({
106
- components: {
107
- TabContentWorking
108
- },
109
- template: `
110
- <GridLayout rows="*">
111
- <TabView androidTabsPosition="bottom" iosIconRenderingMode="alwaysOriginal">
112
- <TabViewItem title="Tab1" textTransform="capitalize">
113
- <Frame id="main-frame">
114
- <Page class="page">
115
- <ActionBar title="#536" />
116
- <TabContentWorking @show="openModal" />
117
- </Page>
118
- </Frame>
119
- </TabViewItem>
120
- </TabView>
121
- </GridLayout>
122
- `,
123
- methods: {
124
- openModal () {
125
- // show the wizard in a modal, and make sure it is fullscreen.
126
- this.$showModal(WizardModal, {
127
- fullscreen: true
128
- }).then(res => {
129
- console.log('wizard completed with res', res)
130
- })
131
- }
132
- }
133
- }).$start()
134
- */
You can’t perform that action at this time.
0 commit comments