Skip to content

Modal post doesn't open inside index route but it does in different routes #5593

@roelmagdaleno

Description

@roelmagdaleno

Version

v2.6.2

Reproduction link

https://codesandbox.io/s/2v4vyr850n

Steps to reproduce

You have to go to these routes (or click the links in the index route):

/timewall - works
/testing - works
/ - not working

After that, you need to click on the post card and it will open the modal. This won't happen inside the index route and will show you the error.

What is expected ?

Open the post modal inside /timewall and /

What is actually happening?

Trying to open the modal in index route, will throw this error:

_vm.$refs.postModal is undefined

Additional comments?

I configured my nuxt.config.js file to add to the previous routes a children so it can access the post/_slug.vue template inside the routes.

2019-04-24 00_47_10-web-app [F__Desarrollos_Doki_web-app] - ..._nuxt.config.js [web-app] - PhpStorm.png

This bug report is available on Nuxt community (#c9096)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions