Skip to content

Commit

Permalink
feat: Rows cannot be clicked while editing
Browse files Browse the repository at this point in the history
  • Loading branch information
Domino987 committed Feb 26, 2022
1 parent 3aa7790 commit 96afa7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MTableBodyRow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ export default function MTableBodyRow(props) {
if (persistEvents) {
event.persist();
}
handleOnRowClick(event);
// Rows cannot be clicked while editing
!hasAnyEditingRow && handleOnRowClick(event);
}}
hover={!!(onRowClick || onRowDoubleClick)}
style={getStyle(props.index, props.level)}
Expand Down

0 comments on commit 96afa7d

Please sign in to comment.