ant-design/components/modal
Peter Gassner 25ea3a7202
fix: Allow users to handle promise rejections in ActionButton's onOk callback (#40018)
* 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>
2023-01-08 00:27:33 +08:00
..
__tests__ fix: Allow users to handle promise rejections in ActionButton's onOk callback (#40018) 2023-01-08 00:27:33 +08:00
demo fix: wireframe style for popconfirm (#39313) 2022-12-06 23:14:30 +08:00
style style(Modal): fix content break lines (#39249) 2022-12-04 23:34:58 +08:00
useModal fix: useModal default okText (#39884) 2022-12-29 17:05:50 +08:00
confirm.tsx chore: remo format and remove prettierrc arrowParens (#38722) 2022-11-19 13:47:33 +08:00
ConfirmDialog.tsx feat: Remove locale-provider (#39373) 2022-12-09 15:04:08 +08:00
destroyFns.ts fix: circular dependencies in Modal & Input (#31817) 2021-08-17 16:22:42 +08:00
index.en-US.md docs: use en link in EN_US (#39808) 2022-12-26 11:55:18 +08:00
index.tsx docs: v5 site upgrade (#38328) 2022-11-09 12:28:04 +08:00
index.zh-CN.md docs: update doc (#39753) 2022-12-26 10:08:15 +08:00
locale.tsx refactor: locale files reference path (#38194) 2022-10-26 14:38:54 +08:00
Modal.tsx Merge branch 'master' into feature-merge-master 2022-12-18 14:28:58 +08:00
PurePanel.tsx Merge branch 'master' into feature-merge-master 2022-12-18 14:28:58 +08:00