@dreamworld/dw-form
Advanced tools
Comparing version 2.1.2-remove-element-at-specific-index.1 to 2.2.0
@@ -130,10 +130,8 @@ /** | ||
_onUnregisterDwFormElement(e) { | ||
let removeEl = e.composedPath()[0]; | ||
let elIndex = this._elements.indexOf(removeEl); | ||
if (elIndex != -1) { | ||
this._elements.splice(elIndex, 1); | ||
let element = e.target; | ||
if (this._elements.indexOf(element) != -1) { | ||
this._elements.splice(element.index, 1); | ||
} | ||
this._unbindValueChangedEvents(element); | ||
this._unbindValueChangedEvents(removeEl); | ||
} | ||
@@ -140,0 +138,0 @@ |
@@ -21,2 +21,3 @@ /** | ||
display: block; | ||
cursor: pointer; | ||
--mdc-theme-text-primary-on-background: var(--mdc-theme-text-primary); | ||
@@ -26,2 +27,3 @@ } | ||
:host([disabled]) { | ||
cursor: default; | ||
pointer-events: none; | ||
@@ -47,4 +49,9 @@ } | ||
:host([disabled]) label { | ||
cursor: default; | ||
} | ||
label{ | ||
min-height: var(--dw-form-field-label-min-height, auto); | ||
cursor: pointer; | ||
} | ||
@@ -51,0 +58,0 @@ ` |
{ | ||
"name": "@dreamworld/dw-form", | ||
"version": "2.1.2-remove-element-at-specific-index.1", | ||
"version": "2.2.0", | ||
"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
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
28539
643
1