Commit acb261c
fix(ContextualMenu): restore onDismiss in Callout slot props
Destructuring onDismiss from userProps removed it from the ...rest spread
that gets passed to the Callout root slot. The Callout needs onDismiss to
function correctly — without it, the MenuButton SPACE key test consistently
failed because the menu couldn't dismiss/toggle properly.
Fix: destructure onDismiss AND explicitly pass it back in the root slot props.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ba70449 commit acb261c
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments