Skip to content

[1.0.6] router-view and v-ref #1724

@OEvgeny

Description

@OEvgeny

v-ref stops to work properly with router-view after [email protected] update. It was working properly in 1.0.3.

I see this varning: fiddle

[Vue warn]: v-ref:page must be used on a child component. Found on <p>.
vue.js:2201 Error: Warning Stack Trace
    at Object.exports.warn (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:2201:29)
    at Directive.module.exports.bind (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:5354:31)
    at Directive._bind (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:9469:11)
    at linkAndCapture (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:2493:14)
    at rootLinkFn (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:2641:22)
    at VueComponent.exports._compile (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:9205:23)
    at VueComponent.exports.$mount (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:10394:9)
    at VueComponent.exports._init (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:8404:11)
    at VueComponent.Vue._init (https://rawgit.com/vuejs/vue-router/dev/dist/vue-router.js:1602:11)
    at new VueComponent (eval at createClass (https://cdn.jsdelivr.net/vue/1.0.6/vue.js:2310:11), <anonymous>:2:47)

Also there are warnings about fragment instance component:

[Vue warn]: Attribute "v-ref:page" is ignored on component <router-view> because the component is a fragment instance: http://vuejs.org/guide/components.html#Fragment_Instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions