@@ -189,7 +189,7 @@ export class ComponentBase<T> {
189
189
let tempOnDestroyThis : any = isTempRef || this ;
190
190
/* istanbul ignore else */
191
191
setTimeout ( ( ) => {
192
- if ( typeof window !== 'undefined' && document . body . contains ( tempOnDestroyThis . element ) && ( tempOnDestroyThis . element . classList . contains ( 'e-control' ) || tempOnDestroyThis . element ) ) {
192
+ if ( typeof window !== 'undefined' && document . body . contains ( tempOnDestroyThis . element ) && tempOnDestroyThis . element . classList . contains ( 'e-control' ) ) {
193
193
tempOnDestroyThis . destroy ( ) ;
194
194
tempOnDestroyThis . clearTemplate ( null ) ;
195
195
// removing bounded events and tagobjects from component after destroy
@@ -261,7 +261,7 @@ export class ComponentBase<T> {
261
261
tempAfterContentThis . setProperties ( propObj , tagObject . instance . isInitChanges ) ;
262
262
} else {
263
263
/* istanbul ignore next */
264
- if ( ( tempAfterContentThis [ tagObject . name ] . length !== tagObject . instance . list . length ) || / d i a g r a m | D a s h b o a r d L a y o u t / . test ( tempAfterContentThis . getModuleName ( ) ) ) {
264
+ if ( ( tempAfterContentThis [ tagObject . name ] . length !== tagObject . instance . list . length ) || ( tempAfterContentThis . getModuleName ( ) === 'diagram' ) ) {
265
265
tempAfterContentThis [ tagObject . name ] = tagObject . instance . list ;
266
266
}
267
267
for ( let list of tagObject . instance . list ) {
@@ -271,7 +271,7 @@ export class ComponentBase<T> {
271
271
complexTemplates = complexTemplates . filter ( ( val : string ) : boolean => {
272
272
return / R e f $ / i. test ( val ) ;
273
273
} ) ;
274
- if ( curChild . properties && Object . keys ( curChild . properties ) . length !== 0 && / c h a r t | k a n b a n / . test ( tempAfterContentThis . getModuleName ( ) ) ) {
274
+ if ( curChild . properties && Object . keys ( curChild . properties ) . length !== 0 && / c h a r t / . test ( tempAfterContentThis . getModuleName ( ) ) ) {
275
275
for ( let complexPropName of complexTemplates ) {
276
276
complexPropName = complexPropName . replace ( / R e f / , '' ) ;
277
277
curChild . properties [ complexPropName ] = ! curChild . properties [ complexPropName ] ?
0 commit comments