@domql/element 2.5.170 → 2.5.171

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/cjs/set.js CHANGED
@@ -73,12 +73,14 @@ const set = function(params, options = {}, el) {
73
73
  return;
74
74
  }
75
75
  if (params) {
76
- const { childExtend, childProps, props } = params;
76
+ let { childExtend, childProps, props } = params;
77
77
  if (!childExtend && element.childExtend)
78
78
  params.childExtend = element.childExtend;
79
79
  if (!childProps && element.childProps)
80
80
  params.childProps = element.childProps;
81
81
  if (!(props == null ? void 0 : props.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
82
+ if (!props)
83
+ props = params.props = {};
82
84
  props.childProps = element.props.childProps;
83
85
  }
84
86
  if (lazyLoad) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domql/element",
3
- "version": "2.5.170",
3
+ "version": "2.5.171",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "index.js",
@@ -31,7 +31,7 @@
31
31
  "@domql/state": "^2.5.170",
32
32
  "@domql/utils": "^2.5.170"
33
33
  },
34
- "gitHead": "44f9d2c4157170a03784d6abca2eee3604b97270",
34
+ "gitHead": "14edf7f4e3caf3f0bf1f3fa58ee6507024dca8d0",
35
35
  "devDependencies": {
36
36
  "@babel/core": "^7.12.0"
37
37
  }
package/set.js CHANGED
@@ -51,10 +51,11 @@ export const set = function (params, options = {}, el) {
51
51
  }
52
52
 
53
53
  if (params) {
54
- const { childExtend, childProps, props } = params
54
+ let { childExtend, childProps, props } = params
55
55
  if (!childExtend && element.childExtend) params.childExtend = element.childExtend
56
56
  if (!childProps && element.childProps) params.childProps = element.childProps
57
57
  if (!props?.childProps && element.props?.childProps) {
58
+ if (!props) props = params.props = {}
58
59
  props.childProps = element.props.childProps
59
60
  }
60
61