File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,15 @@ class ReactTooltip extends React.Component {
57
57
disable : PropTypes . bool ,
58
58
scrollHide : PropTypes . bool ,
59
59
resizeHide : PropTypes . bool ,
60
- wrapper : PropTypes . string
60
+ wrapper : PropTypes . string ,
61
+ clickable : PropTypes . bool
61
62
} ;
62
63
63
64
static defaultProps = {
64
65
insecure : true ,
65
66
resizeHide : true ,
66
- wrapper : 'div'
67
+ wrapper : 'div' ,
68
+ clickable : false
67
69
} ;
68
70
69
71
static supportedWrappers = [ 'div' , 'span' ] ;
@@ -539,7 +541,8 @@ class ReactTooltip extends React.Component {
539
541
{ 'type-error' : this . state . type === 'error' } ,
540
542
{ 'type-info' : this . state . type === 'info' } ,
541
543
{ 'type-light' : this . state . type === 'light' } ,
542
- { 'allow_hover' : this . props . delayUpdate }
544
+ { 'allow_hover' : this . props . delayUpdate } ,
545
+ { 'allow_click' : this . props . clickable }
543
546
)
544
547
545
548
let Wrapper = this . props . wrapper
Original file line number Diff line number Diff line change 67
67
top : -999em ;
68
68
visibility : hidden ;
69
69
z-index : 999 ;
70
- & .allow_hover {
70
+ & .allow_hover ,
71
+ & .allow_click {
71
72
pointer-events :auto ;
72
73
}
73
74
& :before ,
You can’t perform that action at this time.
0 commit comments