Baseweb: `disabled` flag on the `FormControl` does not disable the `Input`

Created on 23 Oct 2019  路  5Comments  路  Source: uber/baseweb

bug question

All 5 comments

I can take a shot at fixing it!

thank you @wajeehsheikh

So after looking into this bug. The solution is, for the disabled button to add the disabled prop in the <Input /> tag like this:

Screen Shot 2019-11-30 at 9 51 44 PM

Instead it adds the disabled prop in the </FormControl> tag like this:

Screen Shot 2019-11-30 at 9 49 51 PM

According to the disabled props description, "Displays label in light grey if true"
Which it does. So is this the intended purpose?

Screen Shot 2019-11-30 at 10 08 44 PM

@wajeehsheikh I believe @NameFILIP 's point was that the FormControl component should automatically propagate the disabled property to its' children - is that correct?

Correct. Otherwise, I need to pass the disabled property to both FormControl and Input which is redundant

Was this page helpful?
0 / 5 - 0 ratings