Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal.confirm motion missing #47007

Closed
zombieJ opened this issue Jan 17, 2024 · 1 comment · Fixed by #47010
Closed

Modal.confirm motion missing #47007

zombieJ opened this issue Jan 17, 2024 · 1 comment · Fixed by #47010

Comments

@zombieJ
Copy link
Member

zombieJ commented Jan 17, 2024

Reproduction link

Edit on CodeSandbox

5.12.x work as expect: https://codesandbox.io/p/sandbox/ji-ben-antd-5-13-1-forked-v393kd?file=%2Fpackage.json%3A6%2C34

Steps to reproduce

  1. 设置 CP 的 prefixCls
  2. 当先有 Modal 组件时,会创建对应样式并且记录 key path 到 cache 中。
  3. 调用 Modal.confirm 并且设 prefixCls 对应于 CP 的 prefixCls,由于静态方法的 key path 相同,会命中缓存而略过。
  4. 但是通过组件的 prefixCls 创建的样式,和 CP prefixCls 创建的样式并不相同,导致静态方法创建的样式丢失。

What is expected?

Closable

What is actually happening?

Not Closable

Environment Info
antd 5.13.1
React latest
System IOS
Browser chrome

@afc163
Copy link
Member

afc163 commented Jan 17, 2024

codesandbox 里貌似没有 Modal.confirm

现在有了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants