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 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
- event.stopPropagation();
166
- event.preventDefault();
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