Skip to content

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

@alon202501

Description

@alon202501

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菜单报错,项目白屏

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