availity-reactstrap-validation icon indicating copy to clipboard operation
availity-reactstrap-validation copied to clipboard

Fix checkbox defaultChecked state interpreted as not provided

Open Host32 opened this issue 4 years ago • 0 comments

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.

Host32 avatar Aug 18 '20 13:08 Host32