Skip to content

Commit

Permalink
Input in TreeItem
Browse files Browse the repository at this point in the history
  • Loading branch information
eggbread committed Dec 17, 2019
1 parent 5b8f2d8 commit 203c64c
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 203c64c

Please sign in to comment.