Topic: modal.directive.ts - focusOtherModals - add null check
Starceaker free 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'); }
Starceaker free answered 7 years ago
Rafał Rogulski free 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. RegardsRafał Rogulski free answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No