Skip to content

Nested menu exception TypeError: "child.componentOptions is undefined" #988

@LeoQuote

Description

@LeoQuote
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.10

Environment

Firefox 68.0 vue 2.5.17

Reproduction link

Edit on CodeSandbox

Steps to reproduce

I created a nested menu using the code given by document https://vue.ant.design/components/menu/#Single-file-recursive-menu
but it seems not working

What is expected?

A menu shows

What is actually happening?

nothing shows
exception: TypeError: "child.componentOptions is undefined"


I deleted the "key" in the menu list , using the name as key. I think it would be fine for vue
I added "key" property for each item , but the expecetion is still there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions