diff --git a/platform/nativescript/plugins/modal-plugin.js b/platform/nativescript/plugins/modal-plugin.js index 75a984fa..b3ad00da 100644 --- a/platform/nativescript/plugins/modal-plugin.js +++ b/platform/nativescript/plugins/modal-plugin.js @@ -85,7 +85,7 @@ export default { const modalPage = navEntryInstance.$mount().$el.nativeView updateDevtools() - this.$el.nativeView.showModal(modalPage, options) + this.$root.nativeView.showModal(modalPage, options) }) } } diff --git a/samples/app/536.js b/samples/app/536.js index 784ae5f0..6ad318da 100644 --- a/samples/app/536.js +++ b/samples/app/536.js @@ -83,52 +83,3 @@ new Vue({ ` }).$start() - -// Working code. Please comment the previous Vue instance and -// uncomment the following commented code in order to workaround the issue -// The workaround is opening the modal in the root component -/* -const TabContentWorking = { - template: ` - -