Skip to content

Commit 608c875

Browse files
committed
this.popupInstance should be this._component
After 5337b18, this.popupInstance had renamed to this._component
1 parent ec82480 commit 608c875

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
@@ -396,8 +396,8 @@ const Trigger = React.createClass({
396396
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
397397
},
398398
forcePopupAlign() {
399-
if (this.state.popupVisible && this.popupInstance && this.popupInstance.alignInstance) {
400-
this.popupInstance.alignInstance.forceAlign();
399+
if (this.state.popupVisible && this._component && this._component.alignInstance) {
400+
this._component.alignInstance.forceAlign();
401401
}
402402
},
403403

0 commit comments

Comments
 (0)