mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[bugfix] DropdownMenu: incorrect position in some browsers
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user