JedWatson / JedWatson/react-select

Component is not disabled when inside a fieldset component

Open
#5,130 1 comment 3 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

Hello,

I am currently trying to disable all my input component dynamically.
The easiest way to do that is to encompass all of them inside a fieldset html component adding the property disabled.
It works fine for all my other input components but unfortunately it doesn't for the ones using your library, the Select is still usable.
Is there a workaround ?
Thanks in advance

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 by reproducing the Select inside a disabled HTML fieldset and compare its behavior with native inputs. Trace the Select entry point to determine how fieldset-disabled state is handled; done means the Select can no longer be used when its containing fieldset is disabled.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.