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.modern.js
CHANGED
@@ -3281,15 +3281,19 @@ var Dialog = function Dialog(props) {
|
|
3281
3281
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3282
3282
|
children = props.children,
|
3283
3283
|
actions = props.actions,
|
3284
|
-
className = props.className
|
3284
|
+
className = props.className,
|
3285
|
+
_props$eventPropagati = props.eventPropagation,
|
3286
|
+
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3285
3287
|
|
3286
3288
|
function close() {
|
3287
3289
|
site.closeDialog();
|
3288
3290
|
}
|
3289
3291
|
|
3290
3292
|
function prevent(e) {
|
3291
|
-
|
3292
|
-
|
3293
|
+
if (!eventPropagation) {
|
3294
|
+
e.preventDefault();
|
3295
|
+
e.stopPropagation();
|
3296
|
+
}
|
3293
3297
|
}
|
3294
3298
|
|
3295
3299
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
@@ -3391,7 +3395,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3391
3395
|
title: title,
|
3392
3396
|
open: true,
|
3393
3397
|
onAction: onAction,
|
3394
|
-
actions: actions
|
3398
|
+
actions: actions,
|
3399
|
+
eventPropagation: true
|
3395
3400
|
}, /*#__PURE__*/React.createElement(Uploader, {
|
3396
3401
|
label: label,
|
3397
3402
|
accept: accept,
|