Open tgarijo opened 5 months ago
Hi, I solved the problem setting Editable Column when call to child from parent child
Old call
<td pEditableColumn class="calendar">
<!--child Component-->
<fromDate [formGroup]="hotelFormGroup" [indexDate]="rowIndex" (itemEvent)="blurTo($event, rowIndex)"/>
</td>
New call
<td class="calendar">
<fromDate pEditableColumn
[formGroup]="hotelFormGroup"
[indexDate]="rowIndex"
(itemEvent)="blurTo($event, rowIndex)">
</fromDate>
</td>
But I don't know why. Someone could explain to me? Thank you
Describe the bug
For example, input or p-calendar.
Let me explain. I have a p-table component in a parent component with its td elements, and inside the td, there's a peditable Column. Inside this peditable Column, I have a p-calendar component that works fine. However, when I try to encapsulate this p-calendar component within a child component, it doesn't behave the same way as it does in the parent component. For example, in the parent component, the p-calendar correctly deploys a calendar to select dates. However, in the child component, the calendar does not deploy as expected, the calendar no show
This is my code Work well:
And that is the code doesn't work well:
/Child Code component/
If you need further assistance with the wording of your email or its content, please let me know.
Environment
"@angular/core": "^17.0.6", "primeng": "^17.12.0",
Reproducer
No response
Angular version
17.0.6
PrimeNG version
17.12.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.10.0
Browser(s)
chrome 126.0.6478.61
Steps to reproduce the behavior
No response
Expected behavior
No response