ywana-core8 0.0.326 → 0.0.327
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 +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/icon.js +5 -3
- package/src/widgets/upload/UploadArea.js +1 -1
package/dist/index.cjs
CHANGED
@@ -159,11 +159,16 @@ var Icon = function Icon(_ref) {
|
|
159
159
|
size = _ref$size === void 0 ? "normal" : _ref$size,
|
160
160
|
_ref$clickable = _ref.clickable,
|
161
161
|
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
162
|
-
action = _ref.action
|
162
|
+
action = _ref.action,
|
163
|
+
_ref$eventPropagation = _ref.eventPropagation,
|
164
|
+
eventPropagation = _ref$eventPropagation === void 0 ? false : _ref$eventPropagation;
|
163
165
|
|
164
166
|
function click(event) {
|
165
|
-
|
166
|
-
|
167
|
+
if (!eventPropagation) {
|
168
|
+
event.stopPropagation();
|
169
|
+
event.preventDefault();
|
170
|
+
}
|
171
|
+
|
167
172
|
if (action) action(event);
|
168
173
|
}
|
169
174
|
|
@@ -2747,7 +2752,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2747
2752
|
ref: iconElement
|
2748
2753
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2749
2754
|
icon: icon,
|
2750
|
-
clickable: true
|
2755
|
+
clickable: true,
|
2756
|
+
eventPropagation: true
|
2751
2757
|
}));
|
2752
2758
|
};
|
2753
2759
|
|