Skip to content

Conditional Fields (get) => get('check') not working with multiple panels #540

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

Open
tabetVercetti opened this issue Apr 7, 2025 · 0 comments

Comments

@tabetVercetti
Copy link

tabetVercetti commented Apr 7, 2025

Hello,
in my r3f app, i create multiple leva panels; however, i noticed that conditionally rendering fields isn't working as it should.

i've set up a sandbox that recreates the issue. At the bottom you'll find two buttons, one for the box's panel and the other for the ground. Each panel has field that should appear conditionally when "moreSetting" is true.

Please have a look and let me know if this is truly a bug or am I doing something wrong?
Thank you

Dependencies:
“@react-three/drei”: “^10.0.4”,
“@react-three/fiber”: “^9.1.0”,
“@react-three/postprocessing”: “^3.0.4”,
“leva”: “^0.10.0”,
“next”: “^15.2.1”,
“postprocessing”: “^6.37.1”,
“react”: “^19.0.0”,
“react-dom”: “^19.0.0”,
“three”: “^0.174.0”
"zustand": "5.0.3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant