Skip to content

Commit

Permalink
fix(angular): fix nativeElement check
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Dec 20, 2021
1 parent 5466df6 commit d48fb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular/src/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export class SwiperComponent implements OnInit {

private _setElement(el: ElementRef, ref: any, update: string, key = 'el') {
if (!ref && !el) return;
if (el.nativeElement) {
if (el && el.nativeElement) {
if (ref[key] === el.nativeElement) {
return;
}
Expand Down

0 comments on commit d48fb1b

Please sign in to comment.