@vaadin/form-layout 22.0.17 → 22.0.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/form-layout",
3
- "version": "22.0.17",
3
+ "version": "22.0.18",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,16 +34,16 @@
34
34
  "dependencies": {
35
35
  "@polymer/iron-resizable-behavior": "^3.0.0",
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "^22.0.17",
38
- "@vaadin/vaadin-lumo-styles": "^22.0.17",
39
- "@vaadin/vaadin-material-styles": "^22.0.17",
40
- "@vaadin/vaadin-themable-mixin": "^22.0.17"
37
+ "@vaadin/component-base": "^22.0.18",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.18",
39
+ "@vaadin/vaadin-material-styles": "^22.0.18",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.18"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
- "@vaadin/text-field": "^22.0.17",
45
+ "@vaadin/text-field": "^22.0.18",
46
46
  "sinon": "^9.2.1"
47
47
  },
48
- "gitHead": "4ba77c19889036fb954052cf1f32bc96089fcc25"
48
+ "gitHead": "8f5d45192adbb084661af01c8837d0898cd68a23"
49
49
  }
@@ -518,8 +518,12 @@ class FormLayout extends ElementMixin(ThemableMixin(mixinBehaviors([IronResizabl
518
518
 
519
519
  if (child.localName === 'vaadin-form-item') {
520
520
  if (this._labelsOnTop) {
521
- child.setAttribute('label-position', 'top');
522
- } else {
521
+ if (child.getAttribute('label-position') !== 'top') {
522
+ child.__useLayoutLabelPosition = true;
523
+ child.setAttribute('label-position', 'top');
524
+ }
525
+ } else if (child.__useLayoutLabelPosition) {
526
+ delete child.__useLayoutLabelPosition;
523
527
  child.removeAttribute('label-position');
524
528
  }
525
529
  }