From c725ff86094f1137d523c335c3996d372bcd5068 Mon Sep 17 00:00:00 2001 From: Guy Warzager Date: Thu, 29 Aug 2024 23:07:21 +0300 Subject: [PATCH] Update CHANGELOG.md --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f59a983..b656095 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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
- 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.
+ `response` promise that is resolved after modal was closed. can be used instead of `onClose` `popupProps` callback.
+ Returns response of `onClose` callback, otherwise, if `onClose` wasn't passed as a `prop`, the arguments that `onClose` was called with.
## [2.1.7] - 2024-01-31 ### Added