primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.96k stars 1.25k forks source link

Carousel: passthrough(pt) options for buttons not working #6646

Closed asmussens closed 1 month ago

asmussens commented 1 month ago

Describe the bug

Using the passthrough(pt) options on the carousel is only working partly. If I put the following thing on the carousel :pt="{ root: 'carousel-class', pcPrevButton: 'custom' , pcNextButton: 'custom' }" only the class for the root is in the DOM.

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-ggu6bq?file=src%2FApp.vue

PrimeVue version

4.1.1

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

asmussens commented 1 month ago

Sorry that was a mistake from me. I just rechecked and from the documentation I did not see that you have to provide the ButtonPassThroughOptions maybe it is possible to add this as the type in the Carousel?