@domql/element 2.5.29 → 2.5.30
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/update.js +1 -1
- package/package.json +2 -2
- package/update.js +1 -1
package/dist/cjs/update.js
CHANGED
|
@@ -197,7 +197,7 @@ const inheritStateUpdates = (element, options) => {
|
|
|
197
197
|
const shouldForceFunctionState = (0, import_utils.isFunction)(stateKey) && !isHoisted && execStateFunction;
|
|
198
198
|
if (shouldForceFunctionState) {
|
|
199
199
|
const execState = (0, import_utils.exec)(stateKey, element);
|
|
200
|
-
state.set(execState, { ...options, preventUpdate: true });
|
|
200
|
+
state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true });
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
const keyInParentState = (0, import_state.findInheritedState)(element, element.parent);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.30",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@domql/state": "latest",
|
|
32
32
|
"@domql/utils": "latest"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c1547b94101ec41cb0ef08dbee37b81a2a541126",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/core": "^7.12.0"
|
|
37
37
|
}
|
package/update.js
CHANGED
|
@@ -218,7 +218,7 @@ const inheritStateUpdates = (element, options) => {
|
|
|
218
218
|
const shouldForceFunctionState = isFunction(stateKey) && !isHoisted && execStateFunction
|
|
219
219
|
if (shouldForceFunctionState) {
|
|
220
220
|
const execState = exec(stateKey, element)
|
|
221
|
-
state.set(execState, { ...options, preventUpdate: true })
|
|
221
|
+
state.set(execState, { ...options, preventUpdate: true, updatedByStateFunction: true })
|
|
222
222
|
return
|
|
223
223
|
}
|
|
224
224
|
|