primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.6k stars 4.62k forks source link

Form disappearing when inside a p-card #16750

Open urielzen opened 1 week ago

urielzen commented 1 week ago

Describe the bug

A reactive form wrapped inside a p-card component will disappear when interacting with it.

The same form does not disappears, as expected, when outside a p-card.

Environment

Stackblitz

Reproducer

https://stackblitz.com/edit/form-inside-p-card

Angular version

18.0.1

PrimeNG version

18.0.0-beta.4

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.20.3

Browser(s)

Chrome

Steps to reproduce the behavior

Run stackblitz and interact with the form https://stackblitz.com/edit/form-inside-p-card

Expected behavior

No response

bartan34 commented 1 week ago

Putting the form outside of "content" ng-template tags solves the problem but I'm not sure why it happens though