WjPopup [owner] is null for Angular components

Posted by: seaninglis on 24 February 2022, 11:39 am EST

    • Post Options:
    • Link

    Posted 24 February 2022, 11:39 am EST

    Referring to this code taken from your original examples, linking the Angular component to the popup component declaratively in the html template doesn’t seem to work:

    https://jscodemine.grapecity.com/sample/EK2glMCa9ECdnWtgOzvhaw/

    The first element is a test Angular component. When I examine the linked popup, the .owner property is null and the popup doesn’t show when I click on the component.

    The second is virtually identical, but not wrapped in an Angular component, and the popup * "does "

    show.

    Is this expected behaviour?

    To work around this, I’m exposing the nativeElement of the Angular component as a public property, and manually binding this to the owner property of the popup when the parent screen / component is created, but this seems clumsy and means I need to maintain / reference two extra ViewChildren

  • Posted 25 February 2022, 5:05 am EST

    Hi Sean,

    Thank you for reporting this. This seems like a bug. I have forwarded this to the developers with internal tracking id WJM-22580. I will update you once I will hear from them.

    In the meantime, you can use your workaround in your application.

    Regards,

    Ashwin

  • Posted 25 February 2022, 5:08 pm EST

    Ok, thanks.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels