Skip to content

Commit

Permalink
fix open closed accordion trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Apr 12, 2024
1 parent b3c3394 commit d3887a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bits-ui/src/lib/internal/attrs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export function disabledAttrs(disabled: boolean | undefined | null) {
: { "aria-disabled": undefined, "data-disabled": undefined };
}

export function openClosedAttrs(condition: boolean): "true" | "false" {
return condition ? "true" : "false";
export function openClosedAttrs(condition: boolean): "open" | "closed" {
return condition ? "open" : "closed";
}

export function dataDisabledAttrs(condition: boolean): "" | undefined {
Expand Down

0 comments on commit d3887a7

Please sign in to comment.