- Improved the behaviour with missing
ConfirmProvider
(#98) @joshkel
- Fix compatibility with React 17 (regression from 3.0.13)
- Automatically close the dialog when the calling component is unmounted (for example, router navigation)
- Add acknowledgement checkbox option (#94) @MuscularSloth
- Fixed confirmation keyword field to reset whenever the dialog is open
- Add a global
confirm
method for use with class components (#86) @liaokaime
- Allow specifying the order of confirm & cancel buttons (#70) @MattFellows
- Add
hideCancelButton
option (#68) @btmluiz
- Add support for confirmation keyword (#60) @TimMikeladze
- Make
DialogActions
props configurable
- Respect updates to default options
- Add React 18 to
peerDependencies
(#51) @ProfHercules
- Add
allowClose
option to optionally disable natural close
- Add configurable props for DialogTitle and DialogContent for accessibility (#38) @imjordanxd
- Fix multiple clicks on confirm or cancel button (#37) @ypahalajani
Breaking changes
- Require Material-UI 5 (#36) @tifosiblack
- Add
content
option - Omit open prop from dialogProps (#30) @gergely-adamku
- Bump
react
andreact-dom
peer dependencies (#23) @Armanio
- Don't reject confirmation promise when neutrally closing the dialog (e.g. when hitting Esc) (#18) @tincho
- Merge nested default options (like
confirmationButtonProps
) with options passed to aconfirm
call
- Update TypeScript definitions to use
React.ReactNode
instead ofstring
where appropriate
- Add the ability to pass props to confirmation and cancellation buttons
- Add TypeScript definitions
New API using hooks and Promises.
Higher Order Component API.