File tree Expand file tree Collapse file tree
components/src/renderers/complex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -491,18 +491,18 @@ const DataTableRenderer = ({ schema }: { schema: DataTableSchema }) => {
491491 key = { rowId }
492492 data-state = { isSelected ? 'selected' : undefined }
493493 className = { cn (
494- // @ts -ignore
494+ // @ts -expect-error - onRowClick might not be in schema type definition
495495 schema . onRowClick && "cursor-pointer"
496496 ) }
497497 onClick = { ( e ) => {
498- // @ts -ignore
498+ // @ts -expect-error - onRowClick might not be in schema type definition
499499 if ( schema . onRowClick && ! e . defaultPrevented ) {
500500 // Simple heuristic to avoid triggering on interactive elements if they didn't stop propagation
501501 const target = e . target as HTMLElement ;
502502 if ( target . closest ( 'button' ) || target . closest ( '[role="checkbox"]' ) || target . closest ( 'a' ) ) {
503503 return ;
504504 }
505- // @ts -ignore
505+ // @ts -expect-error - onRowClick might not be in schema type definition
506506 schema . onRowClick ( row ) ;
507507 }
508508 } }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ if (!global.PointerEvent) {
2626 this . shiftKey = props . shiftKey || false ;
2727 }
2828 }
29- // @ts -ignore
29+ // @ts -expect-error - PointerEvent polyfill for testing
3030 global . PointerEvent = PointerEvent as any ;
3131}
3232
You can’t perform that action at this time.
0 commit comments