Warning: A props object containing a "key" prop is being spread into JSX
Closed this issue · 1 comments
thaihuyhung commented
Describe the bug
Hi, I'm having this warning every time I add new item into input
To Reproduce
Steps to reproduce the behavior:
- Click on input
- Type anything and press enter
- The warning is shown in console
Error from file: https://github.com/viclafouch/mui-chips-input/blob/main/src/components/TextFieldChip/TextFieldChips.tsx#L304
Expected behavior
No error is shown
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
viclafouch commented
Hello @thaihuyhung !
Thanks for the catch !
Fixed in https://github.com/viclafouch/mui-chips-input/releases/tag/v2.0.0