Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chip manually when enter is pressed on keyboard #116

Open
akhilbv1 opened this issue Sep 6, 2018 · 3 comments
Open

Add chip manually when enter is pressed on keyboard #116

akhilbv1 opened this issue Sep 6, 2018 · 3 comments

Comments

@akhilbv1
Copy link

akhilbv1 commented Sep 6, 2018

How can i add a chip manually when i enter text which is not in the list.

@mwshubham
Copy link

I guess you need to add a text watcher on edit-text of chip-input whenever user enter space just add the text as a form of chip chips_input.addChip(ClassExtendingChipInterface(inputFormChipInput))

@nitinnatural
Copy link

but with chips_input.addChip() replaces chips which are already there.

@mwshubham
Copy link

It doesn't unit there is some chip validator added e.g. chips_input.setChipValidator { _, _ -> false } This result in adding duplicated.

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

No branches or pull requests

3 participants