AutoComplete: class style and click event refactor on removetokenicon
scoped slot
#3899
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
You added support for custom icons in Primevue 3.27.0 which is really appreciated!
I found there were some missing information when customizing
removetokenicon
in the AutoComplete component. It would be beneficial if the removal function were passed as scope for this icon slot.Chip
component works this way.Reproducer
https://codesandbox.io/s/kind-star-7g0l7x?file=/src/App.vue
PrimeVue version
3.27.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
Version 1.50.114 Chromium: 112.0.5615.49 (Build officiel) (64 bits)
Steps to reproduce the behavior
removetokenicon
on the AutoComplete component. Ex.Expected behavior
I would expect the
onClick
event to be passed as slot scope so we can call it from our custom icon!The text was updated successfully, but these errors were encountered: