Skip to content

Commit

Permalink
fix: flatmap for buttongroup
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Aug 1, 2024
1 parent e2de01e commit 570d71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ButtonGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ButtonGroup extends ContainerWidget {
}

get buttons(): Button[] {
return this._container.rows[0].filter((b) => !b.invisible) as Button[];
return this._container.rows.flat().filter((b) => !b.invisible) as Button[];
}

constructor(props: any) {
Expand Down

0 comments on commit 570d71c

Please sign in to comment.