From 0736f80462cbc50e5749f5a6545a98f198f3fa2f Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Wed, 26 Jun 2019 15:16:20 -0400 Subject: [PATCH] fix(FormGroup): allow disable when tag is fieldset (#1547) 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 (