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.cjs
CHANGED
@@ -3289,15 +3289,19 @@ var Dialog = function Dialog(props) {
|
|
3289
3289
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3290
3290
|
children = props.children,
|
3291
3291
|
actions = props.actions,
|
3292
|
-
className = props.className
|
3292
|
+
className = props.className,
|
3293
|
+
_props$eventPropagati = props.eventPropagation,
|
3294
|
+
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3293
3295
|
|
3294
3296
|
function close() {
|
3295
3297
|
site.closeDialog();
|
3296
3298
|
}
|
3297
3299
|
|
3298
3300
|
function prevent(e) {
|
3299
|
-
|
3300
|
-
|
3301
|
+
if (!eventPropagation) {
|
3302
|
+
e.preventDefault();
|
3303
|
+
e.stopPropagation();
|
3304
|
+
}
|
3301
3305
|
}
|
3302
3306
|
|
3303
3307
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -3399,7 +3403,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3399
3403
|
title: title,
|
3400
3404
|
open: true,
|
3401
3405
|
onAction: onAction,
|
3402
|
-
actions: actions
|
3406
|
+
actions: actions,
|
3407
|
+
eventPropagation: true
|
3403
3408
|
}, /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
3404
3409
|
label: label,
|
3405
3410
|
accept: accept,
|