Skip to content

Commit

Permalink
fix: trigger forceAlign cannot call
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jul 1, 2018
1 parent 3250302 commit 8254f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/trigger/Trigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ export default {
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1
},
forcePopupAlign () {
if (this.$data.sPopupVisible && this._component && this._component.alignInstance) {
this._component.alignInstance.forceAlign()
if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
this._component.$refs.alignInstance.forceAlign()
}
},
fireEvents (type, e) {
Expand Down

0 comments on commit 8254f78

Please sign in to comment.