@glimstone/react 4.3.5 → 4.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.
@@ -160,8 +160,9 @@ export function DropdownListbox({ open, onClose, triggerRef, label, multiselecta
160
160
  const dir = e.key === "ArrowDown" ? 1 : -1;
161
161
  next = at < 0 ? (dir === 1 ? 0 : opts.length - 1) : (at + dir + opts.length) % opts.length;
162
162
  }
163
- opts[next].scrollIntoView?.({ block: "nearest" });
164
- opts[next].focus();
163
+ const option = opts[next];
164
+ option.scrollIntoView?.({ block: "nearest" });
165
+ option.focus();
165
166
  }
166
167
  if (!open)
167
168
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glimstone/react",
3
- "version": "4.3.5",
3
+ "version": "4.3.7",
4
4
  "description": "GlimStone's components for React",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/junkerderprovinz/glimstone.git", "directory": "packages/react" },
@@ -16,7 +16,7 @@
16
16
  "build": "tsc -p tsconfig.build.json"
17
17
  },
18
18
  "dependencies": {
19
- "@glimstone/core": "4.3.5"
19
+ "@glimstone/core": "4.3.7"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@zag-js/combobox": "^1.46.0",