Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Fix checkbox defaultChecked state interpreted as not provided #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Host32
Copy link
Contributor

@Host32 Host32 commented Aug 18, 2020

AvCheckbox with default values was not correctly treating defaultChecked propertie, because a undefined value is treated as not provided, so the checkbocks is marked as checked even than the value is not present on array.

Reference:
https://stackoverflow.com/questions/55259173/react-handling-multiple-checkboxes

So just adding a corrent treating for undefined return of find call solved the problem.

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

Successfully merging this pull request may close these issues.

1 participant