-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: FormGroup lost disabled attribute in Carbon 11 #17057
Comments
* fix: add disabled attribute back to FormGroup Fixes #17057. * chore: update snapshot to fix test
FYI, some research on the underlying problem: Carbon 10 had the correct declaration (provided through export interface FormGroupProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> { whereas Carbon 11 is essentially doing export interface FormGroupProps extends React.HTMLAttributes<HTMLFieldSetElement> { So the difference is One might think that
So I guess extending export interface TextInputProps
extends Omit<
React.InputHTMLAttributes<HTMLInputElement>,
ExcludedAttributes
> { |
Package
@carbon/react
Browser
Chrome
Package version
1.62.1
React version
18
Description
In Carbon 10,
FormGroup
had adisabled
attribute. In Carbon 11 (@carbon/react V1), it does not.Since
fieldset
has adisabled
attribute, andFormGroup
is just afieldset
, thenFormGroup
should have adisabled
attribute too.Reproduction/example
https://stackblitz.com/edit/vitejs-vite-pwka1x?file=package.json
Steps to reproduce
I didn't have much luck reproducing this on Stackblitz. If there's a working example with Typescript and Carbon then I'd be happy to modify it to reproduce the error.
Suggested Severity
None
Application/PAL
IKC
Code of Conduct
The text was updated successfully, but these errors were encountered: