TeamWertarbyte / material-ui-chip-input

A chip input field using Material-UI.
https://mui.wertarbyte.com/#material-ui-chip-input
MIT License
737 stars 208 forks source link

On Android Mobile: newChipKeys not working #344

Open brandonhdz opened 3 years ago

brandonhdz commented 3 years ago

I am using formik, and manually handling the chip array to submit items to the back end. However, I noticed that on mobile when hitting enter it goes to the next field as opposed to adding another chip.

Not sure if this is a formik issue or mui-chip-issue. I know I can change the newChipKeys, should I change it to 'space'?

Any help or direction would be greatly appreciated

tested on Android

brandonhdz commented 3 years ago

UPDATE: I tried using newChipKeyCode={[32, 62]} even with that it wasn't working. It seems as though this might be an issue with android and also deprecated.

Because of this I started using newChipKeys={['Space', ' ', /\/a/]} Even so they are still not being registered on Android(Samsung Note 10). Even when I test it here the key is Unidentified, but it does register a space: " ". Is there a better way to check for this in newChipKeys?