KaiUI
KaiUI copied to clipboard
onInputChange not working
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)
}}
/>)
Hey, my ability to dedicate time to this project is very minimal so please submit a PR to fix any issues