mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
25ea3a7202
* fix: Allow users to handle promise rejections in onOk callback Components that rely on ActionButton swallow rejected promises. This makes it impossible for userland code to handle them. * polish: Fix linting problems * polish: Return rejected promise instead of throwing * refact: Remove test for unhandled promise rejection This test breaks when run in parallel by Jest. At the moment we have no way of changing the way Jest works and it prohibits us from testing for "unhandledRejection" events. See: https://github.com/ant-design/ant-design/pull/40018#issuecomment-1373590259 * test: hack for rejection Co-authored-by: 二货机器人 <smith3816@gmail.com> |
||
---|---|---|
.. | ||
__snapshots__ | ||
confirm.test.tsx | ||
demo-extend.test.ts | ||
demo.test.ts | ||
hook.test.tsx | ||
image.test.ts | ||
Modal.test.tsx | ||
type.test.tsx |