Skip to content

a-menu组件报错: Uncaught (in promise) TypeError: this.isContextmenuToShow is not a function #8363

@alon202501

Description

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

Version

4.2.6

Environment

Chrome

Reproduction link

https://next.antdv.com/components/menu-cn

Steps to reproduce

使用官方文档内嵌菜单示例, 运行项目报错白屏
Uncaught (in promise) TypeError: this.isContextmenuToShow is not a function
at Proxy.render (Trigger.js:623:14)
at renderComponentRoot (runtime-core.esm-bundler.js:6592:16)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5392:46)
at ReactiveEffect.run (reactivity.esm-bundler.js:237:19)
at setupRenderEffect (runtime-core.esm-bundler.js:5527:5)
at mountComponent (runtime-core.esm-bundler.js:5301:7)
at processComponent (runtime-core.esm-bundler.js:5253:9)
at patch (runtime-core.esm-bundler.js:4769:11)
at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js:5399:11)
at ReactiveEffect.run (reactivity.esm-bundler.js:237:19)

What is expected?

实现官方文档的内嵌菜单效果

What is actually happening?

a-menu组件报错this.isContextmenuToShow is not a function

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