-
Notifications
You must be signed in to change notification settings - Fork 5k
Drawer Regression; Flicker when clicking the close button inside the drawer #19367
Copy link
Copy link
Closed
Closed
Copy link
Labels
Type: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working
Milestone
Description
Describe the bug
export const appConfig: ApplicationConfig = {
providers: [
provideHttpClient(withFetch()),
providePrimeNG({
theme: { preset: Aura, options: { darkModeSelector: '.p-dark' } },
ripple: true,
}),
],
};
When the application is setup with the ripple: true option, then after opening the drawer and then clicking on the close drawer button inside the drawer, then sometimes (but most times) then right before the animation ends you see the drawer again.
Showing a flicker of the drawer.
20260202-1501-42.0806781.mp4
Edit:
The problem also accours when using the motionOptions [motionOptions]="{duration: 600}"
I don't know if this is supposed to work.
Edit 2
Enabling ripple AND setting [motionOptions]="{duration: 300}" on the drawer, seems too mediate the issue.
Pull Request Link
No response
Reason for not contributing a PR
- Lack of time
- Unsure how to implement the fix/feature
- Difficulty understanding the codebase
- Other
Other Reason
No response
Reproducer
https://stackblitz.com/edit/nl1vmyba?file=src%2Fapp%2Fdrawer-basic-demo.ts
Environment
Windows, but also on stackblitz it is reproduceable.
Angular version
21.1.2
PrimeNG version
v21
Node version
24.2.0
Browser(s)
Chrome
Steps to reproduce the behavior
- Click on open the drawer button
- Click on the close icon
- Repeat this process untill you see the issue.
Expected behavior
To not see the drawer flicker after closing it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugIssue contains a bug related to a specific component. Something about the component is not workingIssue contains a bug related to a specific component. Something about the component is not working
Type
Projects
Status
Done