Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
varzager authored Aug 29, 2024
1 parent 8150cc6 commit c725ff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ All notable changes to this project will be documented in this file.

## [2.2.0] - 2024-08-29
### Added
- `response` - `popupManager.open(Modal)` returns an object that now also has `response` promise that is resolved with consumer's `onClose` `prop`'s response, and if not exist that the arguments that onClose were called with <br>
This is great for scenarios having confirmation modals that are needed only in some cases - such as navigating out of a page that hasn't been saved
This can also replace the need for `onClose` callback `prop` entirely.
- `response` - `response` was added to the return value of the `open` method. <br>
`response` promise that is resolved after modal was closed. can be used instead of `onClose` `popupProps` callback.<br>
Returns response of `onClose` callback, otherwise, if `onClose` wasn't passed as a `prop`, the arguments that `onClose` was called with.<br>

## [2.1.7] - 2024-01-31
### Added
Expand Down

0 comments on commit c725ff8

Please sign in to comment.