Skip to content

Commit ec54e0e

Browse files
authored
fix:嵌套popup使用时不显示菜单 (umicro#1263)
1 parent 845bf25 commit ec54e0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uview-ui/components/u-dropdown/u-dropdown.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@
172172
},
173173
// 打开下拉菜单
174174
open(index) {
175+
// 嵌套popup使用时可能获取不到正确的高度,重新计算
176+
if (this.contentHeight < 1) this.getContentHeight()
175177
// 重置高亮索引,否则会造成多个菜单同时高亮
176178
// this.highlightIndex = 9999;
177179
// 展开时,设置下拉内容的样式

0 commit comments

Comments
 (0)