Skip to content

Commit 8254f78

Browse files
committed
fix: trigger forceAlign cannot call
1 parent 3250302 commit 8254f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/trigger/Trigger.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ export default {
465465
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1
466466
},
467467
forcePopupAlign () {
468-
if (this.$data.sPopupVisible && this._component && this._component.alignInstance) {
469-
this._component.alignInstance.forceAlign()
468+
if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
469+
this._component.$refs.alignInstance.forceAlign()
470470
}
471471
},
472472
fireEvents (type, e) {

0 commit comments

Comments
 (0)