KaiUI icon indicating copy to clipboard operation
KaiUI copied to clipboard

onInputChange not working

Open grachet opened this issue 5 years ago • 1 comments

Hi,

Im using checkbox listitem and onInputChange is working only if you click on the checkbox (like with the mouse) If you press enter on your computer or center key on kaios, nothing is trigger (onFocusChange is also not triggered)

I've done that in CheckboxListItem.tsx

const handleInvertCheck = () => {
   if (onInputChange) {
     onInputChange(!isChecked);
   }
   setChecked(wasChecked => !wasChecked);
 }

My code

<CheckboxListItem
                    primary={"title"}
                    initCheckboxVal={false}
                    checkboxSide="left"
                    onInputChange={(isChecked) => {
                            showToast("updated", 1000)
                    }}
                  />)

grachet avatar Oct 08 '20 00:10 grachet

Hey, my ability to dedicate time to this project is very minimal so please submit a PR to fix any issues

AdrianMachado avatar Mar 05 '22 09:03 AdrianMachado