From d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9 Mon Sep 17 00:00:00 2001
From: Dan Miller <danjm.com@gmail.com>
Date: Sun, 9 Sep 2018 13:48:34 -0230
Subject: Improvements to propdefaults in button-group.component and
 basic-tab-content.component

---
 ui/app/components/button-group/button-group.component.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'ui/app/components/button-group/button-group.component.js')

diff --git a/ui/app/components/button-group/button-group.component.js b/ui/app/components/button-group/button-group.component.js
index 905bbe9d2..440b3c4f7 100644
--- a/ui/app/components/button-group/button-group.component.js
+++ b/ui/app/components/button-group/button-group.component.js
@@ -14,12 +14,13 @@ export default class ButtonGroup extends PureComponent {
 
   static defaultProps = {
     className: 'button-group',
+    defaultActiveButtonIndex: 0,
   }
 
   state = {
     activeButtonIndex: this.props.noButtonActiveByDefault
       ? null
-      : this.props.defaultActiveButtonIndex || 0,
+      : this.props.defaultActiveButtonIndex,
   }
 
   handleButtonClick (activeButtonIndex) {
-- 
cgit