Skip to content

Commit a089c7b

Browse files
jassuncaomtorromeo
authored andcommitted
Fixes ToolbarToggleGroup not toggling
`toggleExpanded ?? undefined` resolves to an expression where toggleExpanded is not called. Vue's event binding can handle null or undefined values gracefully making the ?? undefined unnecessary.
1 parent 7b48d8b commit a089c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/Toolbar/ToolbarToggleGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
aria-label="Show Filters"
77
:aria-expanded="expanded"
88
:aria-haspopup="expanded && isContentPopup"
9-
@click="toggleExpanded ?? undefined"
9+
@click="toggleExpanded"
1010
>
1111
<slot name="icon" />
1212
</pf-button>

0 commit comments

Comments
 (0)