Posted 14 September 2017, 12:08 pm EST
Hi,
I’m trying to develop a modal service which displays modals when called.
I have created a modal component, using a wjpopup. Here is it’s template :
<wj-popup #modal id="modal" [modal]="true" [hideTrigger]="'None'" [ngClass]="{'modal-error': isError, 'modal-warning': isWarning}"> … </wj-popup>
This component is injected in the application dynamiquely (like this).
My service creates the component, injects it, and calls the component’s show method, which will call the show on wjpopup.
It works, and the style is applied.
My popup is placed at the bottom of the body, outside of the Angular Root component.
1) When I call the hide() on wjpopup, I got this error : “Cannot read property ‘style’ of undefined”. It seems to come from wijmo.hidePopup(…), where popup is undefined.
2) Plus, Popup._showBackdrop() has no effect or was not called. I can click behind my modal, and there is no grey background.
How can I correct these 2 issues ?
Thanks.
F.Pouyez


