@vaadin/a11y-base 24.8.7 → 24.8.9

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.8.7",
3
+ "version": "24.8.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,14 +32,14 @@
32
32
  "dependencies": {
33
33
  "@open-wc/dedupe-mixin": "^1.3.0",
34
34
  "@polymer/polymer": "^3.0.0",
35
- "@vaadin/component-base": "~24.8.7",
35
+ "@vaadin/component-base": "~24.8.9",
36
36
  "lit": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@vaadin/chai-plugins": "~24.8.7",
40
- "@vaadin/test-runner-commands": "~24.8.7",
39
+ "@vaadin/chai-plugins": "~24.8.9",
40
+ "@vaadin/test-runner-commands": "~24.8.9",
41
41
  "@vaadin/testing-helpers": "^1.1.0",
42
42
  "sinon": "^18.0.0"
43
43
  },
44
- "gitHead": "5136ca7537273974e8cf01af79f27963f49cb876"
44
+ "gitHead": "5d43d8386a37ba17eff54d91024ab8d273136b26"
45
45
  }
@@ -104,11 +104,12 @@ export const KeyboardDirectionMixin = (superclass) =>
104
104
  if (
105
105
  this._tabNavigation &&
106
106
  key === 'Tab' &&
107
- ((idx > currentIdx && event.shiftKey) || (idx < currentIdx && !event.shiftKey))
107
+ ((idx > currentIdx && event.shiftKey) || (idx < currentIdx && !event.shiftKey) || idx === currentIdx)
108
108
  ) {
109
109
  // Prevent "roving tabindex" logic and let the normal Tab behavior if
110
110
  // - currently on the first focusable item and Shift + Tab is pressed,
111
- // - currently on the last focusable item and Tab is pressed.
111
+ // - currently on the last focusable item and Tab is pressed,
112
+ // - currently on the only focusable item and Tab is pressed
112
113
  return;
113
114
  }
114
115