bits-ui 2.8.4 → 2.8.5

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.
@@ -340,6 +340,8 @@ export class CommandRootState {
340
340
  return;
341
341
  if (this.isGrid) {
342
342
  const isFirstRowOfGroup = this.#itemIsFirstRowOfGroup(item);
343
+ // ensure item is visible
344
+ item.scrollIntoView({ block: "nearest" });
343
345
  if (isFirstRowOfGroup) {
344
346
  const closestGroupHeader = item
345
347
  ?.closest(COMMAND_GROUP_SELECTOR)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",