@@ -54,6 +54,7 @@ export default class Trigger extends React.Component {
54
54
blurDelay : PropTypes . number ,
55
55
getPopupContainer : PropTypes . func ,
56
56
getDocument : PropTypes . func ,
57
+ getTarget : PropTypes . func ,
57
58
forceRender : PropTypes . bool ,
58
59
destroyPopupOnHide : PropTypes . bool ,
59
60
mask : PropTypes . bool ,
@@ -297,10 +298,6 @@ export default class Trigger extends React.Component {
297
298
return null ;
298
299
}
299
300
300
- getRootDomNode = ( ) => {
301
- return findDOMNode ( this ) ;
302
- }
303
-
304
301
getPopupClassNameFromAlign = ( align ) => {
305
302
const className = [ ] ;
306
303
const props = this . props ;
@@ -327,7 +324,7 @@ export default class Trigger extends React.Component {
327
324
const {
328
325
prefixCls, destroyPopupOnHide, popupClassName, action,
329
326
onPopupAlign, popupAnimation, popupTransitionName, popupStyle,
330
- mask, maskAnimation, maskTransitionName, zIndex, popup, stretch,
327
+ mask, maskAnimation, maskTransitionName, zIndex, popup, stretch, getTarget ,
331
328
} = this . props ;
332
329
const { state } = this ;
333
330
@@ -354,7 +351,7 @@ export default class Trigger extends React.Component {
354
351
getClassNameFromAlign = { this . getPopupClassNameFromAlign }
355
352
{ ...mouseProps }
356
353
stretch = { stretch }
357
- getRootDomNode = { this . getRootDomNode }
354
+ getTarget = { getTarget || this . getRootDomNode }
358
355
style = { popupStyle }
359
356
mask = { mask }
360
357
zIndex = { zIndex }
0 commit comments