ToastMessage: styleClass property is ignored #4454
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Documentation states that
toast.add()
acceptsstyleClass
property, but in reality this property is ignored byToastMessage
component.styleClass
property was initially added in this commit (a4973cb), but in the current version of the source code this property doesn't exists.In version 3.29
ToastMessage
works as expected, but not in latest versions (3.33 or 3.34)Reproducer
https://codesandbox.io/p/sandbox/delicate-smoke-n4xknr
PrimeVue version
3.34.1
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Open provided example and you will see the issue.
In this example you will see a Toast and a counter of specified classes in Toast on the current page.
If you will see 0 - it means that there is no classes on this page with the specified name, so the bug persists.
Expected behavior
styleClass
must not be ignored and must be applied toToastMessage
container (?)Also
Toast.spec.js
can be corrected with additional checks for this prop.The text was updated successfully, but these errors were encountered: