Skip to content

5.x Popover 的 onOpenChange 触发的时机存在问题 #42924

Closed
react-component/select
#951
@linxianxi

Description

@linxianxi

Reproduction link

Edit on CodeSandbox

4.x 是可以的
Edit on CodeSandbox

Steps to reproduce

目的是为了在 Popover 内打开 Modal 时,Popover 不关闭

1、打开 Popover
2、打开 Modal
3、关闭 Modal

What is expected?

Popover 是打开的。且在 Modal 打开的时候点击任意位置不应触发 onOpenChange。

What is actually happening?

Popover 关闭了。且在 Modal 打开的时候点击任意位置都会触发 onOpenChange。

Environment Info
antd 5.6.1
React lastest
System mac
Browser chrome

discussion #42863 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions