Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Chip note adding using space bar #358

Open
itshasnainkhanofficial opened this issue Sep 17, 2021 · 1 comment
Open

Chip note adding using space bar #358

itshasnainkhanofficial opened this issue Sep 17, 2021 · 1 comment

Comments

@itshasnainkhanofficial
Copy link

itshasnainkhanofficial commented Sep 17, 2021

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']}

@imanpalsingh
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants