@vaadin/radio-group 25.3.5 → 25.3.7

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/radio-group",
3
- "version": "25.3.5",
3
+ "version": "25.3.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,18 +37,18 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@open-wc/dedupe-mixin": "^1.3.0",
40
- "@vaadin/a11y-base": "~25.3.5",
41
- "@vaadin/component-base": "~25.3.5",
42
- "@vaadin/field-base": "~25.3.5",
43
- "@vaadin/vaadin-themable-mixin": "~25.3.5",
40
+ "@vaadin/a11y-base": "~25.3.7",
41
+ "@vaadin/component-base": "~25.3.7",
42
+ "@vaadin/field-base": "~25.3.7",
43
+ "@vaadin/vaadin-themable-mixin": "~25.3.7",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/aura": "~25.3.5",
48
- "@vaadin/chai-plugins": "~25.3.5",
49
- "@vaadin/test-runner-commands": "~25.3.5",
47
+ "@vaadin/aura": "~25.3.7",
48
+ "@vaadin/chai-plugins": "~25.3.7",
49
+ "@vaadin/test-runner-commands": "~25.3.7",
50
50
  "@vaadin/testing-helpers": "^2.0.0",
51
- "@vaadin/vaadin-lumo-styles": "~25.3.5",
51
+ "@vaadin/vaadin-lumo-styles": "~25.3.7",
52
52
  "sinon": "^22.0.0"
53
53
  },
54
54
  "customElements": "custom-elements.json",
@@ -56,5 +56,5 @@
56
56
  "web-types.json",
57
57
  "web-types.lit.json"
58
58
  ],
59
- "gitHead": "d5dd5b95c78030be2a41c5fe768bc07d39bd3ebf"
59
+ "gitHead": "a8a234c11fdd73670c47c270dc513fef984302bf"
60
60
  }
@@ -94,6 +94,27 @@ export const RadioGroupMixin = (superclass) =>
94
94
  return this.__filterRadioButtons([...this.children]);
95
95
  }
96
96
 
97
+ /**
98
+ * Override method inherited from `FocusMixin` to move focus
99
+ * to the checked radio button, or to the first enabled one.
100
+ *
101
+ * @param {FocusOptions=} options
102
+ * @protected
103
+ * @override
104
+ */
105
+ focus(options) {
106
+ if (this.disabled) {
107
+ return;
108
+ }
109
+
110
+ const selected = this.__selectedRadioButton;
111
+ const target = selected && !selected.disabled ? selected : this.__radioButtons.find((radio) => !radio.disabled);
112
+ if (target) {
113
+ target.focus(options);
114
+ super.focus(options);
115
+ }
116
+ }
117
+
97
118
  /**
98
119
  * A currently selected radio button.
99
120
  *
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/radio-group",
4
- "version": "25.3.5",
4
+ "version": "25.3.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/radio-group",
4
- "version": "25.3.5",
4
+ "version": "25.3.7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {