ywana-core8 0.0.381 → 0.0.384
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 +6 -1
- package/src/widgets/upload/UploadArea.js +1 -1
- package/src/widgets/upload/UploadDialog.js +1 -1
package/dist/index.cjs
CHANGED
@@ -2786,7 +2786,7 @@ var UploadArea = function UploadArea(props) {
|
|
2786
2786
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2787
2787
|
icon: icon,
|
2788
2788
|
clickable: true,
|
2789
|
-
eventPropagation:
|
2789
|
+
eventPropagation: true
|
2790
2790
|
}), /*#__PURE__*/React__default["default"].createElement("label", null, label));
|
2791
2791
|
};
|
2792
2792
|
/**
|
@@ -3386,13 +3386,19 @@ var Dialog = function Dialog(props) {
|
|
3386
3386
|
}
|
3387
3387
|
}
|
3388
3388
|
|
3389
|
+
function prevent(e) {
|
3390
|
+
e.preventDefault();
|
3391
|
+
e.stopPropagation();
|
3392
|
+
}
|
3393
|
+
|
3389
3394
|
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
3390
3395
|
className: "overlay " + className
|
3391
3396
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
3392
3397
|
className: "dialog " + className,
|
3393
3398
|
onClick: close
|
3394
3399
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
3395
|
-
className: "dialog-panel"
|
3400
|
+
className: "dialog-panel",
|
3401
|
+
onClick: prevent
|
3396
3402
|
}, /*#__PURE__*/React__default["default"].createElement("header", null, icon ? /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|
3397
3403
|
icon: icon
|
3398
3404
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Text, null, title)), /*#__PURE__*/React__default["default"].createElement("main", null, children), /*#__PURE__*/React__default["default"].createElement("footer", null, actions))));
|
@@ -3489,8 +3495,7 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3489
3495
|
title: title,
|
3490
3496
|
open: true,
|
3491
3497
|
onAction: onAction,
|
3492
|
-
actions: actions
|
3493
|
-
eventPropagation: true
|
3498
|
+
actions: actions
|
3494
3499
|
}, /*#__PURE__*/React__default["default"].createElement(Uploader, {
|
3495
3500
|
label: label,
|
3496
3501
|
accept: accept,
|