ywana-core8 0.0.382 → 0.0.383
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 +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +6 -1
package/dist/index.modern.js
CHANGED
@@ -3378,13 +3378,19 @@ var Dialog = function Dialog(props) {
|
|
3378
3378
|
}
|
3379
3379
|
}
|
3380
3380
|
|
3381
|
+
function prevent(e) {
|
3382
|
+
e.preventDefault();
|
3383
|
+
e.stopPropagation();
|
3384
|
+
}
|
3385
|
+
|
3381
3386
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
3382
3387
|
className: "overlay " + className
|
3383
3388
|
}), /*#__PURE__*/React.createElement("div", {
|
3384
3389
|
className: "dialog " + className,
|
3385
3390
|
onClick: close
|
3386
3391
|
}, /*#__PURE__*/React.createElement("div", {
|
3387
|
-
className: "dialog-panel"
|
3392
|
+
className: "dialog-panel",
|
3393
|
+
onClick: prevent
|
3388
3394
|
}, /*#__PURE__*/React.createElement("header", null, icon ? /*#__PURE__*/React.createElement(MenuIcon, {
|
3389
3395
|
icon: icon
|
3390
3396
|
}) : null, /*#__PURE__*/React.createElement(Text, null, title)), /*#__PURE__*/React.createElement("main", null, children), /*#__PURE__*/React.createElement("footer", null, actions))));
|