You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Card component - If focusMode = 'tab-only', and the Card has an onClick event handler, then focusMode regresses to no-tab behaviour #31529
If focusMode = 'tab-only', and the Card has an event handler (especially 'onClick'), then focusMode regresses to no-tab behaviour (which is both undocumented and unexpected). This behaviour is introduced here.
Actual Behavior
When the card is focusable, onClick event handlers are not allowed and adding them regresses the focusMode to no-tab.
Expected Behavior
When the card is focused, onClick event handlers should be supported. As well as the onKeyDown/onKeyUp for pressing Enter which should match the onClick behavior.
Logs
No response
Requested priority
Normal
Products/sites affected
Microsoft Loop
Are you willing to submit a PR to fix?
no
Validations
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
The provided reproduction is a minimal reproducible example of the bug.
I have experience the same behavior... would be nice to fix it...
when it is "tab-only" focus mode, then Enter should bring user focus inside the card...
Activity
katiearriagam commentedon May 31, 2024
Related to: #31505
kolaps33 commentedon Jun 13, 2024
I have experience the same behavior... would be nice to fix it...
when it is "tab-only" focus mode, then Enter should bring user focus inside the card...