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.umd.js
CHANGED
@@ -153,11 +153,16 @@
|
|
153
153
|
size = _ref$size === void 0 ? "normal" : _ref$size,
|
154
154
|
_ref$clickable = _ref.clickable,
|
155
155
|
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
156
|
-
action = _ref.action
|
156
|
+
action = _ref.action,
|
157
|
+
_ref$eventPropagation = _ref.eventPropagation,
|
158
|
+
eventPropagation = _ref$eventPropagation === void 0 ? false : _ref$eventPropagation;
|
157
159
|
|
158
160
|
function click(event) {
|
159
|
-
|
160
|
-
|
161
|
+
if (!eventPropagation) {
|
162
|
+
event.stopPropagation();
|
163
|
+
event.preventDefault();
|
164
|
+
}
|
165
|
+
|
161
166
|
if (action) action(event);
|
162
167
|
}
|
163
168
|
|
@@ -2741,7 +2746,8 @@
|
|
2741
2746
|
ref: iconElement
|
2742
2747
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2743
2748
|
icon: icon,
|
2744
|
-
clickable: true
|
2749
|
+
clickable: true,
|
2750
|
+
eventPropagation: true
|
2745
2751
|
}));
|
2746
2752
|
};
|
2747
2753
|
|