mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +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> |
||
---|---|---|
.. | ||
__tests__ | ||
demo | ||
style | ||
useModal | ||
confirm.tsx | ||
ConfirmDialog.tsx | ||
destroyFns.ts | ||
index.en-US.md | ||
index.tsx | ||
index.zh-CN.md | ||
locale.tsx | ||
Modal.tsx | ||
PurePanel.tsx |