ywana-core8 0.0.328 → 0.0.329
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/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +5 -3
- package/src/widgets/upload/UploadDialog.js +1 -1
package/dist/index.umd.js
CHANGED
@@ -3283,15 +3283,19 @@
|
|
3283
3283
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3284
3284
|
children = props.children,
|
3285
3285
|
actions = props.actions,
|
3286
|
-
className = props.className
|
3286
|
+
className = props.className,
|
3287
|
+
_props$eventPropagati = props.eventPropagation,
|
3288
|
+
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3287
3289
|
|
3288
3290
|
function close() {
|
3289
3291
|
site.closeDialog();
|
3290
3292
|
}
|
3291
3293
|
|
3292
3294
|
function prevent(e) {
|
3293
|
-
|
3294
|
-
|
3295
|
+
if (!eventPropagation) {
|
3296
|
+
e.preventDefault();
|
3297
|
+
e.stopPropagation();
|
3298
|
+
}
|
3295
3299
|
}
|
3296
3300
|
|
3297
3301
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -3393,7 +3397,8 @@
|
|
3393
3397
|
title: title,
|
3394
3398
|
open: true,
|
3395
3399
|
onAction: onAction,
|
3396
|
-
actions: actions
|
3400
|
+
actions: actions,
|
3401
|
+
eventPropagation: true
|
3397
3402
|
}, /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
3398
3403
|
label: label,
|
3399
3404
|
accept: accept,
|