From bd599612b02e94d58e7d9c57516412837086e3c1 Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Tue, 25 Jun 2019 20:08:21 -0400 Subject: [PATCH] fix(FormGroup): allow disable when tag is fieldset fieldset allows the disabled attribute and has special handling in the browser. This change will allow the disabled prop to be passed through when the tag is a fieldset fixes #1546 --- src/FormGroup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FormGroup.js b/src/FormGroup.js index 6d0ae8096..6829825b8 100644 --- a/src/FormGroup.js +++ b/src/FormGroup.js @@ -37,6 +37,10 @@ const FormGroup = (props) => { check && inline ? 'form-check-inline' : false, check && disabled ? 'disabled' : false ), cssModule); + + if (Tag === 'fieldset') { + attributes.disabled = disabled; + } return (