File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
projects/igniteui-angular-elements/src/app Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ class IgxCustomNgElementStrategy extends ComponentNgElementStrategy {
119119 // ngElementStrategy getter is protected and also has initialization logic, though that should be safe at this point
120120 if ( parent ?. ngElementStrategy ) {
121121 this . angularParent = parent . ngElementStrategy . angularParent ;
122+
123+ // action strip is reused in row island child grid
124+ // assign parent so it's not destroyed on detach/attach.
125+ if ( element . tagName . toLocaleLowerCase ( ) === 'igc-action-strip' ) {
126+ this . angularParent = ( parent . ngElementStrategy as any ) . componentRef ;
127+ }
128+
122129 this . parentElement = new WeakRef ( parent ) ;
123130 let parentComponentRef = await parent ?. ngElementStrategy [ ComponentRefKey ] ;
124131 parentInjector = parentComponentRef ?. injector ;
You can’t perform that action at this time.
0 commit comments