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

Input clears when value attribute is set #302

Open
anilkumarmr opened this issue Jan 9, 2020 · 2 comments
Open

Input clears when value attribute is set #302

anilkumarmr opened this issue Jan 9, 2020 · 2 comments

Comments

@anilkumarmr
Copy link

anilkumarmr commented Jan 9, 2020

I set the value attribute to a blank array and after entering something and then clicked enter the input dissappers
<div className="App"> <ChipInput value={yourChips} blurBehavior='add' onAdd={(chip) => handleAddChip(chip)} />

@Mit707
Copy link

Mit707 commented Jan 29, 2020

Same issue. Whenever I add chips. it reset my redux form. any solution?

@mnifakram
Copy link

I confirm this issue, reproduction here https://codesandbox.io/s/material-demo-zyqmx?file=/demo.js

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

3 participants