Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upControlled component doesnt trigger onChange when value is undefined #1436
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Affected Projects
Describe the bug
when any component is converted to controlled component with
value={undefined}, thenonChangedoesn't get triggered (ideally it should).To Reproduce
https://codesandbox.io/s/happy-flower-d02lm?file=/src/index.js
Expected behavior
onChangeshould get triggeredTODO: Solution
https://github.com/appbaseio/reactivesearch/blob/next/packages/web/src/components/list/MultiList.js#L199
We need to change this line on each component to check whether the
valuekey was passed explicitly in props.