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
When creating a custom Passthrough object to use when setting PrimeVue to use the unstyled mode, the Message props is missing from the ToastProps type.
The message object contains the severity property which can be used for dynamic styling and is used in the premade Tailwind Passthrough object which comes as apart of PrimeVue.
Below I have attached some images to explain the issue further.
PrimeVue version
3.35.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
Create a custom passthrough object
Add the toast property
Add any of the passthrough options
Attempt to access message using the following object options.props.message.severity
Expected behavior
I expect to not receive a type error when trying to dynamically change styling based on the severity of a toast.
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a custom Passthrough object to use when setting PrimeVue to use the unstyled mode, the Message props is missing from the ToastProps type.
The message object contains the severity property which can be used for dynamic styling and is used in the premade Tailwind Passthrough object which comes as apart of PrimeVue.
Below I have attached some images to explain the issue further.
PrimeVue version
3.35.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
options.props.message.severity
Expected behavior
I expect to not receive a type error when trying to dynamically change styling based on the severity of a toast.
The text was updated successfully, but these errors were encountered: