@vaadin/a11y-base 24.5.0-alpha5 → 24.5.0-alpha6

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/a11y-base",
3
- "version": "24.5.0-alpha5",
3
+ "version": "24.5.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "24.5.0-alpha5",
35
+ "@vaadin/component-base": "24.5.0-alpha6",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
@@ -40,5 +40,5 @@
40
40
  "@vaadin/testing-helpers": "^0.6.0",
41
41
  "sinon": "^13.0.2"
42
42
  },
43
- "gitHead": "4e57d240ababf0c2db9d674891b90bdf3812e6ae"
43
+ "gitHead": "c5f541dbe961a994730d4c60472ae957bf6b4c12"
44
44
  }
package/src/list-mixin.js CHANGED
@@ -166,7 +166,8 @@ export const ListMixin = (superClass) =>
166
166
  }
167
167
  });
168
168
 
169
- this._setFocusable(selected || 0);
169
+ // When selected is set to -1, focus the first available item.
170
+ this._setFocusable(selected < 0 || !selected ? 0 : selected);
170
171
 
171
172
  const itemToSelect = items[selected];
172
173
  items.forEach((item) => {