JedWatson / JedWatson/react-select

"form" attribute in Select doesn't work with FormData

Open
#5,202 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-unconfirmed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

I have a Select field outside the form tag. So, I have set form prop to Select, But when I'm trying to access the Select field via FormData it doesn't consider the Select field at all.

Below is the live link with issue RP:
https://codesandbox.io/s/hardcore-chatterjee-2kbxys

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox reproduction and trace how the Select component handles its form prop and contributes to FormData when rendered outside a form. Done means the Select field is included in FormData when its form prop targets the form.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.