@@ -175,6 +175,7 @@ const OverlayTrigger = React.createClass({
175175
176176 render ( ) {
177177 const trigger = React . Children . only ( this . props . children ) ;
178+ const triggerProps = trigger . props ;
178179
179180 const props = {
180181 'aria-describedby' : this . props . overlay . props . id
@@ -183,7 +184,7 @@ const OverlayTrigger = React.createClass({
183184 // create in render otherwise owner is lost...
184185 this . _overlay = this . getOverlay ( ) ;
185186
186- props . onClick = createChainedFunction ( trigger . props . onClick , this . props . onClick ) ;
187+ props . onClick = createChainedFunction ( triggerProps . onClick , this . props . onClick ) ;
187188
188189 if ( isOneOf ( 'click' , this . props . trigger ) ) {
189190 props . onClick = createChainedFunction ( this . toggle , props . onClick ) ;
@@ -194,13 +195,13 @@ const OverlayTrigger = React.createClass({
194195 '[react-bootstrap] Specifying only the `"hover"` trigger limits the visibilty of the overlay to just mouse users. ' +
195196 'Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.' ) ;
196197
197- props . onMouseOver = createChainedFunction ( this . handleDelayedShow , this . props . onMouseOver ) ;
198- props . onMouseOut = createChainedFunction ( this . handleDelayedHide , this . props . onMouseOut ) ;
198+ props . onMouseOver = createChainedFunction ( this . handleDelayedShow , this . props . onMouseOver , triggerProps . onMouseOver ) ;
199+ props . onMouseOut = createChainedFunction ( this . handleDelayedHide , this . props . onMouseOut , triggerProps . onMouseOut ) ;
199200 }
200201
201202 if ( isOneOf ( 'focus' , this . props . trigger ) ) {
202- props . onFocus = createChainedFunction ( this . handleDelayedShow , this . props . onFocus ) ;
203- props . onBlur = createChainedFunction ( this . handleDelayedHide , this . props . onBlur ) ;
203+ props . onFocus = createChainedFunction ( this . handleDelayedShow , this . props . onFocus , triggerProps . onFocus ) ;
204+ props . onBlur = createChainedFunction ( this . handleDelayedHide , this . props . onBlur , triggerProps . onBlur ) ;
204205 }
205206
206207 return cloneElement (
0 commit comments