Browse Source

Merge pull request #23578 from abpframework/auto-merge/rel-9-3/3950

Merge branch dev with rel-9.3
pull/23585/head
Ma Liming 6 months ago
committed by GitHub
parent
commit
93da49c17a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/directives/loading.directive.ts

2
npm/ng-packs/packages/theme-shared/src/lib/directives/loading.directive.ts

@ -85,7 +85,7 @@ export class LoadingDirective implements OnInit, OnDestroy {
ngOnInit() {
if (!this.targetElement) {
const { offsetHeight, offsetWidth } = this.elRef.nativeElement;
if (!offsetHeight && !offsetWidth && this.elRef.nativeElement.children.length) {
if (!offsetHeight && !offsetWidth && this.elRef.nativeElement.children?.length) {
this.targetElement = this.elRef.nativeElement.children[0] as HTMLElement;
} else {
this.targetElement = this.elRef.nativeElement;

Loading…
Cancel
Save