ywana-core8 0.0.324 → 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 +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +13 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +13 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +1 -1
- package/src/html/icon.js +5 -3
- package/src/widgets/upload/UploadArea.js +2 -2
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
|
|
@@ -2732,8 +2737,8 @@
|
|
2732
2737
|
var iconElement = React.useRef();
|
2733
2738
|
React.useEffect(function () {
|
2734
2739
|
if (resumable && iconElement.current) {
|
2740
|
+
console.log('UploadIcon.effect', resumable, iconElement.current);
|
2735
2741
|
resumable.assignBrowse(iconElement.current);
|
2736
|
-
console.log('uploadicon');
|
2737
2742
|
}
|
2738
2743
|
}, [iconElement]);
|
2739
2744
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
@@ -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
|
|
@@ -3562,7 +3568,8 @@
|
|
3562
3568
|
key: field.id,
|
3563
3569
|
field: field,
|
3564
3570
|
onChange: change,
|
3565
|
-
outlined: true
|
3571
|
+
outlined: true,
|
3572
|
+
content: content
|
3566
3573
|
});
|
3567
3574
|
}))) : null;
|
3568
3575
|
}));
|