Skip to content

Commit

Permalink
fix(treeGrid): Bug in onCellClick event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegario committed Nov 27, 2021
1 parent f7ba8cc commit 42155af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/services/treeData.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class TreeDataService {
const collapsedPropName = this.getTreeDataOptionPropName('collapsedPropName');
const childrenPropName = this.getTreeDataOptionPropName('childrenPropName');

if (targetElm?.className) {
if (typeof targetElm?.className === 'string') {
const hasToggleClass = targetElm.className.indexOf('toggle') >= 0 || false;
if (hasToggleClass) {
const item = this.dataView.getItem(args.row);
Expand Down

0 comments on commit 42155af

Please sign in to comment.