You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Choice chips simply don't work.
If you set a chip to be selected at first, you see it, but as soon as you interact with it or others, nothing works anymore.
I have experienced this also and I have found out where my mistake was.
To initialize tag (e.g. int tag = 0;) for the selected choice, you need to initialize it outside the ChipsChoice widget and somewhere inside the class. My mistake was that I initialized it inside ChipsChoice widget and variable tag will always stay on the same Chip cuz unchanged, leading to the buttons not working.
Maybe you can check if you share the same problem as well. It's working fine now for me.
(Copying over from issue that was originally filed as material-components/material-components-web#5715)
Bug report
Choice chips simply don't work.
If you set a chip to be selected at first, you see it, but as soon as you interact with it or others, nothing works anymore.
Steps to reproduce
Actual behavior
You can't select any chip
Expected behavior
You should be able to change the selected chip by clicking another one.
Screenshots
See this gifv
Your Environment:
The text was updated successfully, but these errors were encountered: