material-ui-chip-input icon indicating copy to clipboard operation
material-ui-chip-input copied to clipboard

Chip note adding using space bar

Open itshasnainkhanofficial opened this issue 3 years ago • 1 comments

Hi, chip adding with Enter and tab keys but not Adding using space, i am using the following to add tab enter and space, both the tab and enter working fine but space not adding the chip. plus if i go to nodemodules file and change the default key from enter to space then after recompiling my react project , the chip is adding perfectly fine with space bar . but this is not the right way to add more item in array . one should not change the node module.

newChipKeys={['Enter' ,'Space' ,'Tab']}

itshasnainkhanofficial avatar Sep 17 '21 15:09 itshasnainkhanofficial

The newChipKeys props uses Key values and the value for Space is " ". So your props should be newChipKeys={[" "]} instead

imanpalsingh avatar Jan 03 '22 13:01 imanpalsingh