File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/jigsaw/pc-components/table Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -395,10 +395,14 @@ export class TableHeadCheckboxRenderer extends TableCellRendererBase {
395395 }
396396
397397 private _isCheckboxDisabled ( rowIndex : number , columnIndex : number ) : boolean {
398- if ( ! this . hostInstance || ! this . hostInstance . _rowElementRefs || ! this . hostInstance . _rowElementRefs . _results || ! this . hostInstance . _rowElementRefs . _results [ rowIndex ] ) {
398+ const element = this . hostInstance ?. _rowElementRefs ?. _results ?. [ rowIndex ] ;
399+ if ( ! element ) {
400+ return false ;
401+ }
402+ const checkboxEle = element . nativeElement . cells [ columnIndex ] . querySelector ( '.jigsaw-checkbox-host' ) ;
403+ if ( ! checkboxEle ) {
399404 return false ;
400405 }
401- const checkboxEle = this . hostInstance . _rowElementRefs . _results [ rowIndex ] . nativeElement . cells [ columnIndex ] . querySelector ( '.jigsaw-checkbox-host' )
402406 return checkboxEle . classList . contains ( 'jigsaw-checkbox-disabled' )
403407 }
404408
You can’t perform that action at this time.
0 commit comments