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

Unwanted form control #3316

Open
GautheyValentin opened this issue Jan 9, 2025 · 0 comments
Open

Unwanted form control #3316

GautheyValentin opened this issue Jan 9, 2025 · 0 comments

Comments

@GautheyValentin
Copy link

Bug report

Current Behavior

I want to use Radix Select in form and manage event by my self.
But when i put select in form, i have double event with an empty string due to FormControl enabled by !!trigger.closest('form') in Select.tsx
Is there a way to disable it ?

Expected behavior

Force form control to be disable

Reproducible example

CodeSandbox Duplicate Event in form

Suggested solution

Allow form to be false and use ?? instead of || in the check

Additional context

N/A

Your environment

Software Name(s) Version
Radix Package(s) latest
React n/a latest
Browser chrome latest
Assistive tech
Node n/a
npm/yarn
Operating System window
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