File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ function isTabDisabled(node) {
14
14
return node . getAttribute ( 'aria-disabled' ) === 'true' ;
15
15
}
16
16
17
+ let useDefaultStyles = true ;
18
+
17
19
module . exports = React . createClass ( {
18
20
displayName : 'Tabs' ,
19
21
@@ -29,6 +31,12 @@ module.exports = React.createClass({
29
31
forceRenderTabPanel : PropTypes . bool
30
32
} ,
31
33
34
+ statics : {
35
+ setUseDefaultStyles ( use ) {
36
+ useDefaultStyles = use ;
37
+ }
38
+ } ,
39
+
32
40
getDefaultProps ( ) {
33
41
return {
34
42
selectedIndex : - 1 ,
@@ -47,9 +55,11 @@ module.exports = React.createClass({
47
55
} ;
48
56
} ,
49
57
50
- componentWillMount ( ) {
51
- jss ( require ( '../helpers/styles.js' ) ) ;
52
- } ,
58
+ componentWillMount ( ) {
59
+ if ( useDefaultStyles ) {
60
+ jss ( require ( '../helpers/styles.js' ) ) ;
61
+ }
62
+ } ,
53
63
54
64
componentWillReceiveProps ( newProps ) {
55
65
this . setState ( this . copyPropsToState ( newProps ) ) ;
You can’t perform that action at this time.
0 commit comments