You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and after switching to another url I have a modal window called and at the first call everything is fine, I switch back to the component and switch to another url again to call the modal window again then my backdropRef is undefined, this appeared after the update to 11.0.2
ngx-bootstrap: 11.0.2
Angular: 16.2.12
Bootstrap: 5.1.3
The text was updated successfully, but these errors were encountered:
I have the canDeactivate function, and when the data is not saved, I call the modal window,
`
public canDeactivate(nextState?: RouterStateSnapshot): boolean {
if (this.formChangeUnsaved) {
this.bsModalRef = this.modalService.show(ModalConfirmFormUnsavedComponent, {
backdrop: true,
ignoreBackdropClick: true,
keyboard: true,
class: 'modal-dialog-centered w566',
});
this.bsModalRef.content.confirm.subscribe((isSaved) => {
if (isSaved) {
this.clientApi.autoSaveFormNextStateUrl.next(nextState.url);
this.bsModalRef.hide();
} else {
this.formChangeUnsaved = false;
this.bsModalRef.hide();
void this.router.navigateByUrl(nextState.url);
}
});
return false;
}
return true;
`
and after switching to another url I have a modal window called and at the first call everything is fine, I switch back to the component and switch to another url again to call the modal window again then my backdropRef is undefined, this appeared after the update to 11.0.2
ngx-bootstrap: 11.0.2
Angular: 16.2.12
Bootstrap: 5.1.3
The text was updated successfully, but these errors were encountered: