Skip to content

Commit

Permalink
fix: command arrow navigation after empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 11, 2024
1 parent b449dcd commit 8fc738d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-singers-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-ui": patch
---

fix: `Command` arrow navigation after empty state displayed
2 changes: 1 addition & 1 deletion packages/bits-ui/src/lib/bits/command/command.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,6 @@ class CommandItemState {
#ref: CommandItemStateProps["ref"];
id: CommandItemStateProps["id"];
root: CommandRootState;

#value: CommandItemStateProps["value"];
#disabled: CommandItemStateProps["disabled"];
#onSelectProp: CommandItemStateProps["onSelect"];
Expand Down Expand Up @@ -916,6 +915,7 @@ class CommandItemState {
"aria-selected": getAriaSelected(this.isSelected),
"data-disabled": getDataDisabled(this.#disabled.current),
"data-selected": getDataSelected(this.isSelected),
"data-value": this.trueValue,
[ITEM_ATTR]: "",
role: "option",
onpointermove: this.onpointermove,
Expand Down

0 comments on commit 8fc738d

Please sign in to comment.