You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have probably found a bug in the P-Splitter. The misbehaviour relates to the restriction of the visibility of individual areas within the P-Splitter. If I define a P-Splitter with two defined areas, I can restrict the visibility of the areas using the "ng-templates" & "ngIf" (see test case 1 from my example). However, it is not possible to change the visibility at runtime (see test case 2 from my example). There I used "setTimeOut" to change the visibility of an area to "hidden" after 5 seconds. However, this has no influence on the DOM.
R0binSmit
changed the title
Component: P-Splitter can't change template visibility
P-Splitter: Can't change template visibility at runtime
Jul 2, 2024
mehmetcetin01140
added
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jul 2, 2024
Describe the bug
I have probably found a bug in the P-Splitter. The misbehaviour relates to the restriction of the visibility of individual areas within the P-Splitter. If I define a P-Splitter with two defined areas, I can restrict the visibility of the areas using the "ng-templates" & "ngIf" (see test case 1 from my example). However, it is not possible to change the visibility at runtime (see test case 2 from my example). There I used "setTimeOut" to change the visibility of an area to "hidden" after 5 seconds. However, this has no influence on the DOM.
Environment
Reproducer
https://stackblitz.com/edit/stackblitz-starters-onvsgv
Angular version
18.0.0
PrimeNG version
17.18.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
17.18.2
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
After changing the Boolean value in *ngIf, the change is taken into account and the DOM is adjusted accordingly (set template visibility).
The text was updated successfully, but these errors were encountered: