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
Messages added to the Message Service do not use the closable property defined in the message object. They only use the closable property applied to the <p-messages> element.
This means that if you are adding multiple messages via the Message Service, you cannot have some be closable and some not.
cetincakiroglu
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
Apr 18, 2024
Describe the bug
Messages added to the Message Service do not use the
closable
property defined in the message object. They only use theclosable
property applied to the<p-messages>
element.This means that if you are adding multiple messages via the Message Service, you cannot have some be
closable
and some not.Environment
All environments
Reproducer
https://stackblitz.com/run?file=src%2Fapp%2Fdemo%2Fmessages-service-demo.ts
Angular version
17.3.1
PrimeNG version
17.13.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18.17.1
Browser(s)
Chrome
Steps to reproduce the behavior
<p-messages
element do not set a value forclosable
(default istrue
)closable: true
closable: false
Expected behavior
Message 1 should be closable
Message 2 should not be closable
The text was updated successfully, but these errors were encountered: