@felte/react
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -69,3 +69,7 @@ import { isFormControl, isElement } from './packages/common/dist/esm/utils/typeGuards.js'; | ||
// This setTimeout is necessary to guarantee the node has been mounted | ||
let created = false; | ||
let destroyed = false; | ||
setTimeout(() => { | ||
if (destroyed) | ||
return; | ||
const parent = fieldNode.parentNode; | ||
@@ -81,2 +85,3 @@ if (!parent || !isElement(parent)) | ||
control = input; | ||
created = true; | ||
} | ||
@@ -94,2 +99,6 @@ else { | ||
destroy() { | ||
var _a; | ||
if (created) | ||
(_a = control.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(control); | ||
destroyed = true; | ||
observer === null || observer === void 0 ? void 0 : observer.disconnect(); | ||
@@ -96,0 +105,0 @@ formElement === null || formElement === void 0 ? void 0 : formElement.removeEventListener('reset', handleReset); |
{ | ||
"name": "@felte/react", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "An extensible form library for ReactJS", | ||
@@ -28,3 +28,3 @@ "main": "dist/cjs/index.cjs", | ||
"dependencies": { | ||
"@felte/core": "1.2.2" | ||
"@felte/core": "1.2.3" | ||
}, | ||
@@ -31,0 +31,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
550591
4261
+ Added@felte/core@1.2.3(transitive)
- Removed@felte/core@1.2.2(transitive)
Updated@felte/core@1.2.3