primefaces / primevue

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

Dialog: pt pcCloseButton not work #6594

Closed JoseAntonioNavasSolutia closed 3 weeks ago

JoseAntonioNavasSolutia commented 1 month ago

Describe the bug

I have a <dialog :pt="{ root: ({}) => ({ id: ${id}, 'aria-labelledby': titulo-modal-${id}, 'aria-describedby': props?.conInfo ? descripcion-modal-${id} : undefined, }), pcCloseButton: ({}) => ({ 'data-testid': 'cerrarModal', onclick: (evt) => { cerrarModal(); }, }), }" but pcCloseButton not working.

Reproducer

https://stackblitz.com/edit/5oxyf8?file=src%2FApp.vue

PrimeVue version

4.0.0

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

tugcekucukoglu commented 3 weeks ago

Current implementation is correct.

Thanks for your contribution.