@vaadin/form-layout
Advanced tools
Comparing version 23.1.0-alpha2 to 23.1.0-alpha3
{ | ||
"name": "@vaadin/form-layout", | ||
"version": "23.1.0-alpha2", | ||
"version": "23.1.0-alpha3", | ||
"publishConfig": { | ||
@@ -37,15 +37,15 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.1.0-alpha2", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha2", | ||
"@vaadin/vaadin-material-styles": "23.1.0-alpha2", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha2" | ||
"@vaadin/component-base": "23.1.0-alpha3", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-alpha3", | ||
"@vaadin/vaadin-material-styles": "23.1.0-alpha3", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-alpha3" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/custom-field": "23.1.0-alpha2", | ||
"@vaadin/custom-field": "23.1.0-alpha3", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-field": "23.1.0-alpha2", | ||
"sinon": "^9.2.1" | ||
"@vaadin/text-field": "23.1.0-alpha3", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "6842dcb8b163d4512fae8d3d12a6559077a4aee6" | ||
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85" | ||
} |
@@ -180,6 +180,2 @@ /** | ||
this.__fieldNode = null; | ||
// Ensure every instance has unique ID | ||
const uniqueId = (FormItem._uniqueLabelId = 1 + FormItem._uniqueLabelId || 0); | ||
this.__labelId = `label-${this.localName}-${uniqueId}`; | ||
} | ||
@@ -248,3 +244,2 @@ | ||
if (this.__labelNode) { | ||
this.__labelNode.id = ''; | ||
this.__labelNode = null; | ||
@@ -260,4 +255,13 @@ | ||
this.__labelNode = newLabelNode; | ||
this.__labelNode.id = this.__labelId; | ||
if (this.__labelNode.id) { | ||
// The new label node already has an id. Let's use it. | ||
this.__labelId = this.__labelNode.id; | ||
} else { | ||
// The new label node doesn't have an id yet. Generate a unique one. | ||
const uniqueId = (FormItem._uniqueLabelId = 1 + FormItem._uniqueLabelId || 0); | ||
this.__labelId = `label-${this.localName}-${uniqueId}`; | ||
this.__labelNode.id = this.__labelId; | ||
} | ||
if (this.__fieldNode) { | ||
@@ -264,0 +268,0 @@ this.__linkLabelToField(this.__fieldNode); |
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
53078
1139
+ Added@vaadin/component-base@23.1.0-alpha3(transitive)
+ Added@vaadin/icon@23.1.0-alpha3(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.1.0-alpha3(transitive)
+ Added@vaadin/vaadin-material-styles@23.1.0-alpha3(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.1.0-alpha3(transitive)
- Removed@vaadin/component-base@23.1.0-alpha2(transitive)
- Removed@vaadin/icon@23.1.0-alpha2(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.1.0-alpha2(transitive)
- Removed@vaadin/vaadin-material-styles@23.1.0-alpha2(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.1.0-alpha2(transitive)