3lang3 / react-vant

React mobile UI Components base on Vant
https://react-vant.3lang.dev
MIT License
1.31k stars 186 forks source link

🐛 [Bug]: ver 3.3.2 DropdownMenu default on body,but his parent node‘s style(style.top...) not have ,So much so that optionItem is always displayed at the top of the page #683

Closed 1176506184 closed 5 months ago

1176506184 commented 9 months ago

Which React Vant packages are impacted?

What version of React Vant are you using?

ver3.3.2

Reproduce live demo(codesandebox or stackblitz)?

No response

Descripition

in ver3.3.1 DropdownMenuItem.tsx line144 teleport={null} and in ver3.3.2 not have so default push body but his parentNode's style(style.top...) not have so options item node's top is 0

3lang3 commented 5 months ago

没太看懂,DropdownMenu 支持 teleport 指定挂载到任意dom节点