Skip to content

Commit

Permalink
* list: skip to check disabled items.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jun 13, 2024
1 parent 945ba9b commit d1588c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/list/src/component/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export class List<P extends ListProps = ListProps, S extends ListState = ListSta
} else if (checkOnClick === true) {
checkOnClick = '.item-checkbox';
}
if (checkOnClick && info && (event.target as HTMLElement).closest(checkOnClick)) {
if (checkOnClick && !info?.renderedItem.disabled && info && (event.target as HTMLElement).closest(checkOnClick)) {
this.toggleChecked(info.key);
event.stopPropagation();
return;
Expand Down

0 comments on commit d1588c4

Please sign in to comment.