diff --git a/docs/markdown/changelog.zh-CN.md b/docs/markdown/changelog.zh-CN.md index 7988639a8..7662be5f8 100644 --- a/docs/markdown/changelog.zh-CN.md +++ b/docs/markdown/changelog.zh-CN.md @@ -27,6 +27,7 @@ ##### DropdownItem - 新增`title-class`属性 +- 修复在部分浏览器上定位错误的问题 ##### Picker diff --git a/packages/dropdown-menu/index.js b/packages/dropdown-menu/index.js index 74216200c..1a067efa6 100644 --- a/packages/dropdown-menu/index.js +++ b/packages/dropdown-menu/index.js @@ -44,7 +44,7 @@ export default sfc({ toggleItem(active) { const { menu } = this.$refs; const rect = menu.getBoundingClientRect(); - this.top = rect.y + rect.height; + this.top = rect.top + rect.height; this.children.forEach((item, index) => { if (index === active) {