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.
@@ -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
- return this.create(typeAlias.create(config), config, more);
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;