1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

PrimeNG not able to open multiple dynamic dialogs(nested) with same component

Discussão em 'Angular' iniciado por Sandeep Verma, Junho 17, 2025.

  1. I am trying to open the DynamicDialog with component ProductListDemo. Once the ProductListDemo dialog opens then there is one more button on dialog itself which again open the ProductListDemo component as nested dialog. First time ProductListDemo dialog open fine, but when I try to open the ProductListDemo again from the button present on ProductListDemo dialog. It doesn't open the dialog and dialogService.open return null.

    ProductService.ts has dialogService to open the dialog component. Below is the stackblitz for the same.

    Stackblitz

    Click on Select Product opens dialog-

    Click on Select Product

    But when I click Nested Dialog button on Dialog it doesn't open

    But when I click Nested Dialog button on Dialog it doesn't open

    Please help me to resolve this issue. It was working fine with primeNG version v14.x but not working with primeNG v17.x

    I have tried to open the Dialog from ProductService.ts

    Continue reading...

Compartilhe esta Página