Topic: modal.directive.ts - focusOtherModals - add null check
Starceaker asked 7 years ago
protected focusOtherModal() { const otherOpenedModals = this._element.nativeElement.parentElement.querySelectorAll('.in[mdbModal]'); if (!otherOpenedModals.length) { return; } this._renderer.invokeElementMethod(otherOpenedModals[otherOpenedModals.length - 1], 'focus'); }
Rafał Rogulski answered 7 years ago
Starceaker answered 7 years ago
Rafał Rogulski commented 7 years ago
Hi That's mean is not a problem of parentElement, is mean it's problem with closing function. Please share her example code when this error showing we will look on this. RegardsFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No