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

CheckBox.Group bugs #5073

Open
3 of 5 tasks
btrewern opened this issue Jun 9, 2022 · 16 comments
Open
3 of 5 tasks

CheckBox.Group bugs #5073

btrewern opened this issue Jun 9, 2022 · 16 comments
Milestone

Comments

@btrewern
Copy link

btrewern commented Jun 9, 2022

Description

Check boxes change randomly when in a CheckBox.Group

CodeSandbox/Snack link

See document examples

Steps to reproduce

Loading either CheckBox.Group examples:

https://docs.nativebase.io/checkbox#h3-controlled or https://docs.nativebase.io/checkbox#h3-uncontrolled

the check boxes don't work as expected. The first select click works but after that check boxes seem to change at random.

Also when running locally these examples raise a Console Warning as follows:

"We can not support a function callback. See Github Issues for details adobe/react-spectrum#2320"

NativeBase Version

3.4.6

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

No response

@Krithikj20
Copy link
Collaborator

Hi @btrewern, Thank you for reporting this issue. We will look into it.

@chornos13
Copy link

Yeah, I experienced the same. this is major bug because the Component not updated when trigger by HMR

@Viraj-10 Viraj-10 added this to the v3.4.7 milestone Jun 13, 2022
@Viraj-10
Copy link
Collaborator

Viraj-10 commented Jun 13, 2022

Hi @chornos13, this issue is fixed in V3.3.12. We are upgrading the native-base version in docs. issue link #4660

@ttessman
Copy link

ttessman commented Oct 4, 2022

Still see the warning in 3.4.13

image

bpintel added a commit to SRJPE/rst-pilot-app-client that referenced this issue Oct 5, 2022
@guidoabelleira
Copy link

guidoabelleira commented Oct 31, 2022

I have the same problem in "native-base": "^3.4.6".

Todavía veo la advertencia en 3.4.13

imagen

did you find a solution?

Logro resolver?

@mlab817
Copy link

mlab817 commented Nov 7, 2022

well, i still have the problem.

@surajahmed surajahmed reopened this Nov 15, 2022
@sahilvasuja
Copy link

sahilvasuja commented Dec 19, 2022

For now, you can try this one checkbox group

@hananiradzi
Copy link

Still have same issue with latest version. 3.4.25

@garrettg123
Copy link

Still an issue in 3.4.28

@kokosky93
Copy link

same problem

@mayying
Copy link

mayying commented Aug 10, 2023

same issue - "native-base": "~3.4.28",

@kokosky93
Copy link

guys how did you solve the problem?

I have no idea how to solve it nothing is working no matter whether is it a simple checkbox or a group of checkboxes.

It is randomly checking checkboxes. I don't know what has changed because there was no update this package last 6 months

@ntrphongse
Copy link

For some who are suffering this problem, I found out the the issue was mentioned and solved here at #5098 (comment)

They fixed it in #5686 but I don't know why it returned to the buggy version (maybe in #5702)

Native-base team please have a look!

@jy1989
Copy link

jy1989 commented Oct 26, 2023

so long time, same bug we facing
"native-base": "^3.4.28",
"react-native": "0.72.4",

@meypod
Copy link

meypod commented Feb 25, 2024

I was able to workaround the issue by wrapping the checkbox with a Pressable, added pointerEvents='none' around the checkbox, stopped using the checkbox or checkbox group's onChange. and toggled the value of checkbox by the Pressable's onPress.
I could not use the isChecked property, so I continued to use checkbox group and the value prop.

I hope this helps somebody out there looking for a workaround.

@agnieszka-wojcik-dev
Copy link

agnieszka-wojcik-dev commented Jul 31, 2024

guys how did you solve the problem?

I have no idea how to solve it nothing is working no matter whether is it a simple checkbox or a group of checkboxes.

It is randomly checking checkboxes. I don't know what has changed because there was no update this package last 6 months

I solved this problem by changing value={someValue} to defaultValue={someValue} in native-base 3.4.28

This was referenced Sep 8, 2024
This was referenced Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests