@vaadin/form-layout 23.1.0 → 23.2.0-alpha2
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/package.json +8 -8
- package/src/vaadin-form-item.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/form-layout",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.2.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "
|
|
38
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
39
|
-
"@vaadin/vaadin-material-styles": "
|
|
40
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/component-base": "23.2.0-alpha2",
|
|
38
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha2",
|
|
39
|
+
"@vaadin/vaadin-material-styles": "23.2.0-alpha2",
|
|
40
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@esm-bundle/chai": "^4.3.4",
|
|
44
|
-
"@vaadin/custom-field": "
|
|
44
|
+
"@vaadin/custom-field": "23.2.0-alpha2",
|
|
45
45
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
46
|
-
"@vaadin/text-field": "
|
|
46
|
+
"@vaadin/text-field": "23.2.0-alpha2",
|
|
47
47
|
"sinon": "^13.0.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c9b8113d0fa9a602f8b9cb915c1826355af2e8df"
|
|
50
50
|
}
|
package/src/vaadin-form-item.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
6
|
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
|
+
import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
|
|
7
8
|
import { addValueToAttribute, removeValueFromAttribute } from '@vaadin/field-base/src/utils.js';
|
|
8
9
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
10
|
|
|
@@ -256,8 +257,7 @@ class FormItem extends ThemableMixin(PolymerElement) {
|
|
|
256
257
|
this.__labelId = this.__labelNode.id;
|
|
257
258
|
} else {
|
|
258
259
|
// The new label node doesn't have an id yet. Generate a unique one.
|
|
259
|
-
|
|
260
|
-
this.__labelId = `label-${this.localName}-${uniqueId}`;
|
|
260
|
+
this.__labelId = `label-${this.localName}-${generateUniqueId()}`;
|
|
261
261
|
this.__labelNode.id = this.__labelId;
|
|
262
262
|
}
|
|
263
263
|
|