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

Comments

Fix checkbox defaultChecked state interpreted as not provided#205

Open
Host32 wants to merge 2 commits intoAvaility:masterfrom
Host32:master
Open

Fix checkbox defaultChecked state interpreted as not provided#205
Host32 wants to merge 2 commits intoAvaility:masterfrom
Host32:master

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