Skip to content

Commit

Permalink
feat: rename selectionMode to shouldSwitchOnKeyboardFocus (#17276)
Browse files Browse the repository at this point in the history
* feat: rename selectionMode to shouldSwitchOnKeyboardFocus

* chore: update prop description, revert other changes

---------

Co-authored-by: Taylor Jones <[email protected]>
Co-authored-by: Taylor Jones <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent 07a60ca commit 0c7b5d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface ContentSwitcherProps
selectedIndex: number;

/**
* Choose whether or not to automatically change selection on focus
* Choose whether or not to automatically change selection on focus when left/right arrow pressed. Defaults to 'automatic'
*/
selectionMode?: 'automatic' | 'manual';

Expand Down Expand Up @@ -115,7 +115,7 @@ export default class ContentSwitcher extends React.Component<
selectedIndex: PropTypes.number,

/**
* Choose whether or not to automatically change selection on focus
* Choose whether or not to automatically change selection on focus when left/right arrow pressed. Defaults to 'automatic'
*/
selectionMode: PropTypes.oneOf(['automatic', 'manual']),

Expand Down

0 comments on commit 0c7b5d3

Please sign in to comment.