Skip to content

Commit

Permalink
Review: Nora
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Jun 10, 2024
1 parent 77164e2 commit baefab0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This prop isn&#39;t supported. Use the <code>onItemFocus</code> callback on the tree if you need to monitor an item&#39;s focus."
},
"onKeyDown": {
"description": "Callback fired when a key of the keyboard is pressed on the item root."
"description": "Callback fired when a key is pressed on the keyboard and the tree is in focus."
},
"slotProps": { "description": "The props used for each component slot." },
"slots": { "description": "Overridable component slots." }
Expand Down
2 changes: 1 addition & 1 deletion packages/x-tree-view/src/TreeItem2/TreeItem2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ TreeItem2.propTypes = {
*/
onFocus: unsupportedProp,
/**
* Callback fired when a key of the keyboard is pressed on the item root.
* Callback fired when a key is pressed on the keyboard and the tree is in focus.
*/
onKeyDown: PropTypes.func,
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/x-tree-view/src/TreeItem2/TreeItem2.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface TreeItem2Props
*/
onBlur?: MuiCancellableEventHandler<React.FocusEvent<HTMLLIElement>>;
/**
* Callback fired when a key of the keyboard is pressed on the item root.
* Callback fired when a key is pressed on the keyboard and the tree is in focus.
*/
onKeyDown?: MuiCancellableEventHandler<React.KeyboardEvent<HTMLLIElement>>;
}
Expand Down

0 comments on commit baefab0

Please sign in to comment.