pollination-react-io 1.95.1 → 1.95.2
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/index.esm.js +9 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +9 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -47263,6 +47263,15 @@ var RecipeForm = function (_a) {
|
|
47263
47263
|
});
|
47264
47264
|
return data;
|
47265
47265
|
}, [recipe, handlers, triggers, controlledValues]);
|
47266
|
+
useEffect(function () {
|
47267
|
+
// Refresh input if controlled value changes
|
47268
|
+
if (!controlledValues)
|
47269
|
+
return;
|
47270
|
+
var names = Object.keys(controlledValues);
|
47271
|
+
inputs.forEach(function (_) {
|
47272
|
+
names.includes(_.name) && handleReset(_);
|
47273
|
+
});
|
47274
|
+
}, [inputs]);
|
47266
47275
|
/**
|
47267
47276
|
* LOCAL ONLY - Create a copy of the recipe and remove alias
|
47268
47277
|
*/
|