@v1nt1248/3nclient-lib 0.1.29 → 0.1.30

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.29",
5
+ "version": "0.1.30",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -78,10 +78,11 @@ function closeDialog(arg?: { ev?: Event; withAction?: boolean }) {
78
78
  }
79
79
  }
80
80
 
81
- function startEmit(event: Ui3nDialogEvent) {
81
+ function startEmit(event: Ui3nDialogEvent, ev?: Event) {
82
82
  if (event === 'click-overlay') {
83
83
  emits(event);
84
- closeDialog();
84
+ dialogProps.value.closeOnClickOverlay && closeDialog({ ev });
85
+ return;
85
86
  }
86
87
 
87
88
  if (event === 'confirm') {
@@ -114,7 +115,7 @@ function handleEvent(event: Event, eventName: Ui3nDialogEvent) {
114
115
  <div
115
116
  v-if="show"
116
117
  :class="$style.overlay"
117
- @click="dialogProps.closeOnClickOverlay ? closeDialog({ ev: $event }) : startEmit('click-overlay')"
118
+ @click="startEmit('click-overlay', $event)"
118
119
  >
119
120
  <div
120
121
  ref="dialogElement"