@vaadin/radio-group 25.2.9 → 25.2.11
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 +10 -10
- package/src/vaadin-radio-group-mixin.js +3 -4
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/radio-group",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.11",
|
|
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.
|
|
41
|
-
"@vaadin/component-base": "~25.2.
|
|
42
|
-
"@vaadin/field-base": "~25.2.
|
|
43
|
-
"@vaadin/vaadin-themable-mixin": "~25.2.
|
|
40
|
+
"@vaadin/a11y-base": "~25.2.11",
|
|
41
|
+
"@vaadin/component-base": "~25.2.11",
|
|
42
|
+
"@vaadin/field-base": "~25.2.11",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "~25.2.11",
|
|
44
44
|
"lit": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@vaadin/aura": "~25.2.
|
|
48
|
-
"@vaadin/chai-plugins": "~25.2.
|
|
49
|
-
"@vaadin/test-runner-commands": "~25.2.
|
|
47
|
+
"@vaadin/aura": "~25.2.11",
|
|
48
|
+
"@vaadin/chai-plugins": "~25.2.11",
|
|
49
|
+
"@vaadin/test-runner-commands": "~25.2.11",
|
|
50
50
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
51
|
-
"@vaadin/vaadin-lumo-styles": "~25.2.
|
|
51
|
+
"@vaadin/vaadin-lumo-styles": "~25.2.11",
|
|
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": "
|
|
59
|
+
"gitHead": "6b08306ffb11c5c7665b0af8050e4368e0c44a5a"
|
|
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
|
|
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