Skip to content

Notification组件使用getContainer方法挂载到一个可销毁的组件之上,会导致下次开启Notification的时候不生效 #6503

@wujiaming123

Description

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

Version

2.2.2

Environment

vue3

Reproduction link

https://www.antdv.com/components/notification

Steps to reproduce

例如有一个列表组件,我将Notification通过getContainer挂载到list节点下,点击列表项出现提示框,当我关掉列表之后,再次打开列表,点击列表项,提示框就出不来了

What is expected?

提示框无论怎样调用显示的方法就要显示

What is actually happening?

销毁挂载组件之后提示框未显示


no

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