usePassThrough: Components with function as their value doesn't seem to work properly #4278
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When trying to have global PassThrough on component which have a function as their value
EX :
Seems like there is no way to merge the Global classes and the ones provided by the Tailwind PassThrough class.
Attempt 1 :
The class property is empty
Attempt 2 :
The class property is empty
Attempt 3 :
The class property is overwritten by the pt2 value
Attempt 4 :
The class property is overwritten by the pt2 value
I tried with useMergeProps at true and false.
Reproducer
https://stackblitz.com/edit/t2cmve?file=src%2Fmain.js
PrimeVue version
3.32
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
Firefox Developper Edition
Steps to reproduce the behavior
Expected behavior
Classes from usePassThrough should be merged and not overwritten. Also the syntaxed shown in the panel.header section here
https://primevue.org/tailwind/#customization
doesn't seem like it's working for this Component. (Haven't tried many other components)
The text was updated successfully, but these errors were encountered: