Skip to content

onInputChange not working #37

Description

@grachet

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)
                    }}
                  />)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions