cx 26.1.10 → 26.1.11
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/build/util/Component.js +7 -2
- package/build/widgets/HtmlElement.js +5 -0
- package/dist/manifest.js +605 -605
- package/dist/util.js +7 -1
- package/dist/widgets.js +4 -0
- package/package.json +1 -1
- package/src/util/Component.ts +7 -2
- package/src/widgets/HtmlElement.tsx +5 -0
package/build/util/Component.js
CHANGED
|
@@ -47,8 +47,13 @@ export class Component {
|
|
|
47
47
|
return this.factory(typeAlias, config, more);
|
|
48
48
|
if (typeAlias.isComponent)
|
|
49
49
|
return typeAlias;
|
|
50
|
-
if (isComponentFactory(typeAlias))
|
|
51
|
-
|
|
50
|
+
if (isComponentFactory(typeAlias)) {
|
|
51
|
+
let result = typeAlias.create(config);
|
|
52
|
+
if (more) {
|
|
53
|
+
result = Object.assign({}, result, more);
|
|
54
|
+
}
|
|
55
|
+
return this.create(result);
|
|
56
|
+
}
|
|
52
57
|
if (isArray(typeAlias))
|
|
53
58
|
return typeAlias.map((c) => this.create(c, config, more));
|
|
54
59
|
if (typeAlias.$type)
|
|
@@ -112,6 +112,11 @@ export class HtmlElement extends StyledContainerBase {
|
|
|
112
112
|
case "autoFocus":
|
|
113
113
|
case "vdomKey":
|
|
114
114
|
return false;
|
|
115
|
+
case "type":
|
|
116
|
+
// allow type like in <input type="text" /> only if it's set as an attribute
|
|
117
|
+
if (this.jsxAttributes?.includes("type") !== true)
|
|
118
|
+
return false;
|
|
119
|
+
break;
|
|
115
120
|
default:
|
|
116
121
|
if (isDataAttribute(attrName))
|
|
117
122
|
return false;
|