Fixing typescript error

This commit is contained in:
Joel T 2022-04-28 14:37:01 -07:00 committed by Lourens Schep
parent d58b436265
commit d0d2de10bf
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ export const TaskListItemTwoColumn: React.FC< TaskListItemProps > = ( {
completed={ isComplete }
additionalInfo={ additionalInfo }
content={ content }
onClick={ ( e: React.ChangeEvent ) => {
if ( e.target?.tagName === 'A' ) {
onClick={ ( e: React.MouseEvent< HTMLButtonElement > ) => {
if ( ( e.target as HTMLElement ).tagName === 'A' ) {
return;
}
onClickActions();