Skip to content

Commit

Permalink
Input in TreeItem
Browse files Browse the repository at this point in the history
  • Loading branch information
eggbread authored and oliviertassinari committed Dec 17, 2019
1 parent ab6e802 commit c1cfe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui-lab/src/TreeItem/TreeItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const TreeItem = React.forwardRef(function TreeItem(props, ref) {
let flag = false;
const key = event.key;

if (event.altKey || event.ctrlKey || event.metaKey) {
if (event.altKey || event.ctrlKey || event.metaKey || event.currentTarget !== event.target) {
return;
}
if (event.shift) {
Expand Down

0 comments on commit c1cfe02

Please sign in to comment.