@vaadin/checkbox 23.0.0-alpha2 → 23.0.0-alpha3

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/checkbox",
3
- "version": "23.0.0-alpha2",
3
+ "version": "23.0.0-alpha3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,16 +33,16 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/component-base": "23.0.0-alpha2",
37
- "@vaadin/field-base": "23.0.0-alpha2",
38
- "@vaadin/vaadin-lumo-styles": "23.0.0-alpha2",
39
- "@vaadin/vaadin-material-styles": "23.0.0-alpha2",
40
- "@vaadin/vaadin-themable-mixin": "23.0.0-alpha2"
36
+ "@vaadin/component-base": "23.0.0-alpha3",
37
+ "@vaadin/field-base": "23.0.0-alpha3",
38
+ "@vaadin/vaadin-lumo-styles": "23.0.0-alpha3",
39
+ "@vaadin/vaadin-material-styles": "23.0.0-alpha3",
40
+ "@vaadin/vaadin-themable-mixin": "23.0.0-alpha3"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
44
  "@vaadin/testing-helpers": "^0.3.2",
45
45
  "sinon": "^9.2.0"
46
46
  },
47
- "gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
47
+ "gitHead": "490037919a9e054cc002c1b3be0c94a1603e1a44"
48
48
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
5
  */
6
6
  import { ActiveMixin } from '@vaadin/component-base/src/active-mixin.js';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * Copyright (c) 2021 Vaadin Ltd.
3
+ * Copyright (c) 2017 - 2022 Vaadin Ltd.
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';
@@ -166,17 +166,19 @@ class Checkbox extends SlotLabelMixin(
166
166
  }
167
167
 
168
168
  /** @protected */
169
- ready() {
170
- super.ready();
169
+ connectedCallback() {
170
+ super.connectedCallback();
171
171
 
172
- this.addController(
173
- new InputController(this, (input) => {
172
+ if (!this._inputController) {
173
+ this._inputController = new InputController(this, (input) => {
174
174
  this._setInputElement(input);
175
175
  this._setFocusElement(input);
176
176
  this.stateTarget = input;
177
- })
178
- );
179
- this.addController(new LabelledInputController(this.inputElement, this._labelNode));
177
+ this.ariaTarget = input;
178
+ });
179
+ this.addController(this._inputController);
180
+ this.addController(new LabelledInputController(this.inputElement, this._labelController));
181
+ }
180
182
  }
181
183
 
182
184
  /**