Skip to content

Commit 1cf4e29

Browse files
committed
fix: dropdown position not correct #2359
1 parent 82fb990 commit 1cf4e29

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/vc-dropdown/src/Dropdown.jsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ export default {
138138
if (
139139
this.$refs.trigger &&
140140
this.$refs.trigger._component &&
141-
this.$refs.trigger._component.alignInstance
141+
this.$refs.trigger._component.$refs &&
142+
this.$refs.trigger._component.$refs.alignInstance
142143
) {
143-
this.$refs.trigger._component.alignInstance.forceAlign();
144+
this.$refs.trigger._component.$refs.alignInstance.forceAlign();
144145
}
145146
}
146147
}

0 commit comments

Comments
 (0)