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