@vaadin/radio-group 25.2.9 → 25.2.10

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.2.9",
3
+ "version": "25.2.10",
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.2.9",
41
- "@vaadin/component-base": "~25.2.9",
42
- "@vaadin/field-base": "~25.2.9",
43
- "@vaadin/vaadin-themable-mixin": "~25.2.9",
40
+ "@vaadin/a11y-base": "~25.2.10",
41
+ "@vaadin/component-base": "~25.2.10",
42
+ "@vaadin/field-base": "~25.2.10",
43
+ "@vaadin/vaadin-themable-mixin": "~25.2.10",
44
44
  "lit": "^3.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@vaadin/aura": "~25.2.9",
48
- "@vaadin/chai-plugins": "~25.2.9",
49
- "@vaadin/test-runner-commands": "~25.2.9",
47
+ "@vaadin/aura": "~25.2.10",
48
+ "@vaadin/chai-plugins": "~25.2.10",
49
+ "@vaadin/test-runner-commands": "~25.2.10",
50
50
  "@vaadin/testing-helpers": "^2.0.0",
51
- "@vaadin/vaadin-lumo-styles": "~25.2.9",
51
+ "@vaadin/vaadin-lumo-styles": "~25.2.10",
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": "233d7875d586aca82b9cd43f19616bd6a4e81631"
59
+ "gitHead": "7715101508f7e689bd77354322fb80b3d7ad402d"
60
60
  }
@@ -10,6 +10,7 @@ import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js';
10
10
  import { TooltipController } from '@vaadin/component-base/src/tooltip-controller.js';
11
11
  import { generateUniqueId } from '@vaadin/component-base/src/unique-id-utils.js';
12
12
  import { FieldMixin } from '@vaadin/field-base/src/field-mixin.js';
13
+ import { RadioButton } from './vaadin-radio-button.js';
13
14
 
14
15
  /**
15
16
  * A mixin providing common radio-group functionality.
@@ -143,7 +144,7 @@ export const RadioGroupMixin = (superclass) =>
143
144
  * @private
144
145
  */
145
146
  __filterRadioButtons(nodes) {
146
- return nodes.filter((node) => node.nodeType === Node.ELEMENT_NODE && node.localName === 'vaadin-radio-button');
147
+ return nodes.filter((node) => node instanceof RadioButton);
147
148
  }
148
149
 
149
150
  /**
@@ -158,9 +159,7 @@ export const RadioGroupMixin = (superclass) =>
158
159
  _onKeyDown(event) {
159
160
  super._onKeyDown(event);
160
161
 
161
- const radioButton = event
162
- .composedPath()
163
- .find((node) => node.nodeType === Node.ELEMENT_NODE && node.localName === 'vaadin-radio-button');
162
+ const radioButton = event.composedPath().find((node) => node instanceof RadioButton);
164
163
 
165
164
  if (['ArrowLeft', 'ArrowUp'].includes(event.key)) {
166
165
  event.preventDefault();
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.2.9",
4
+ "version": "25.2.10",
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.2.9",
4
+ "version": "25.2.10",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {