Skip to content

Commit 25c1e38

Browse files
fix(Label): remove disabled prop (#626)
The disabled prop added a class which was not in the right place, disable should be added to the wrapping FormGroup.
1 parent e9b7803 commit 25c1e38

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/Label.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const propTypes = {
2323
children: PropTypes.node,
2424
hidden: PropTypes.bool,
2525
check: PropTypes.bool,
26-
disabled: PropTypes.bool,
2726
size: PropTypes.string,
2827
for: PropTypes.string,
2928
tag: PropTypes.string,
@@ -60,7 +59,6 @@ const Label = (props) => {
6059
widths,
6160
tag: Tag,
6261
check,
63-
disabled,
6462
size,
6563
for: htmlFor,
6664
...attributes
@@ -100,7 +98,6 @@ const Label = (props) => {
10098
className,
10199
hidden ? 'sr-only' : false,
102100
check ? 'form-check-label' : false,
103-
check && disabled ? 'disabled' : false,
104101
size ? `col-form-label-${size}` : false,
105102
colClasses,
106103
colClasses.length ? 'col-form-label' : false,

0 commit comments

Comments
 (0)