File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
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,11 +31,17 @@ 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 ,
35
43
focus : false ,
36
- forceRenderTabPanel : false
44
+ focusRenderTabPanel : false
37
45
} ;
38
46
} ,
39
47
@@ -48,7 +56,9 @@ module.exports = React.createClass({
48
56
} ,
49
57
50
58
componentWillMount ( ) {
51
- jss ( require ( '../helpers/styles.js' ) ) ;
59
+ if ( useDefaultStyles ) {
60
+ jss ( require ( '../helpers/styles.js' ) ) ;
61
+ }
52
62
} ,
53
63
54
64
componentWillReceiveProps ( newProps ) {
You can’t perform that action at this time.
0 commit comments