monkey-style-guide 2.0.127 → 2.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/services/snackbar/mokey-style-guide-snackbar.service.mjs +7 -3
- package/fesm2015/monkey-style-guide.mjs +6 -2
- package/fesm2015/monkey-style-guide.mjs.map +1 -1
- package/fesm2020/monkey-style-guide.mjs +6 -2
- package/fesm2020/monkey-style-guide.mjs.map +1 -1
- package/lib/core/services/snackbar/mokey-style-guide-snackbar.service.d.ts +2 -0
- package/monkey-style-guide-2.0.128.tgz +0 -0
- package/package.json +1 -1
- package/monkey-style-guide-2.0.127.tgz +0 -0
|
@@ -531,14 +531,18 @@ class MonkeyStyleGuideSnackbarService {
|
|
|
531
531
|
}
|
|
532
532
|
if (actionCancelElement) {
|
|
533
533
|
actionCancelElement.addEventListener('click', () => {
|
|
534
|
-
|
|
534
|
+
if (!cancel?.keepOnAction) {
|
|
535
|
+
this.close(id);
|
|
536
|
+
}
|
|
535
537
|
cancel.action();
|
|
536
538
|
});
|
|
537
539
|
actionElement.appendChild(actionCancelElement);
|
|
538
540
|
}
|
|
539
541
|
if (actionConfirmElement) {
|
|
540
542
|
actionConfirmElement.addEventListener('click', () => {
|
|
541
|
-
|
|
543
|
+
if (!confirm?.keepOnAction) {
|
|
544
|
+
this.close(id);
|
|
545
|
+
}
|
|
542
546
|
confirm.action();
|
|
543
547
|
});
|
|
544
548
|
actionElement.appendChild(actionConfirmElement);
|