Skip to content

Commit 101da55

Browse files
yesmeckbenjycui
authored andcommitted
fix: this.popupInstance should be this._component (#53)
After 5337b18, this.popupInstance had renamed to this._component
1 parent e0cae38 commit 101da55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Trigger.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ const Trigger = createReactClass({
430430
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
431431
},
432432
forcePopupAlign() {
433-
if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) {
434-
this.popupInstance.alignInstance.forceAlign();
433+
if (this.state.popupVisible && this._component && this._component.alignInstance) {
434+
this._component.alignInstance.forceAlign();
435435
}
436436
},
437437

0 commit comments

Comments
 (0)