Closed re757575 closed 1 year ago
Sorry the docs need updating can you try this...
removeIcon={(props) => <Close {...props.iconProps} />}
Fixed sandbox: https://codesandbox.io/p/sandbox/primereact-demo-forked-nnrqkj?file=%2Fsrc%2FApp.js%3A18%2C60
Describe the bug
MultiSelect uses a custom Icon through removeIcon props and the display is chip, the item cannot be removed when the chip item is clicked.
https://github.com/primefaces/primereact/blob/9.5.0/components/lib/multiselect/MultiSelect.js#L506
Reproducer
https://codesandbox.io/p/sandbox/primereact-demo-forked-vhvt7p?file=%2Fsrc%2FApp.js%3A1%2C1
PrimeReact version
9.5.0
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
click remove icon should remove item