Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onInputChange not working #37

Open
grachet opened this issue Oct 8, 2020 · 1 comment
Open

onInputChange not working #37

grachet opened this issue Oct 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@grachet
Copy link

grachet commented Oct 8, 2020

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 grachet added the bug Something isn't working label Oct 8, 2020
@AdrianMachado
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants