@dreamworld/dw-form
Advanced tools
Comparing version 2.1.1 to 2.1.2-remove-element-at-specific-index.1
@@ -130,8 +130,10 @@ /** | ||
_onUnregisterDwFormElement(e) { | ||
let element = e.target; | ||
if (this._elements.indexOf(element) != -1) { | ||
this._elements.splice(element.index, 1); | ||
let removeEl = e.composedPath()[0]; | ||
let elIndex = this._elements.indexOf(removeEl); | ||
if (elIndex != -1) { | ||
this._elements.splice(elIndex, 1); | ||
} | ||
this._unbindValueChangedEvents(element); | ||
this._unbindValueChangedEvents(removeEl); | ||
} | ||
@@ -138,0 +140,0 @@ |
{ | ||
"name": "@dreamworld/dw-form", | ||
"version": "2.1.1", | ||
"version": "2.1.2-remove-element-at-specific-index.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dw-form.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
28458
638
2