ratty-blush
ratty-blush2y ago

Broken drawer after update to new antd version

Yesterday i updated refine-antd from 3.6.1 to 4.1 and my nested drawers got stacked in data container, looks like a problem with overflow: hidden somewhere🤔
7 Replies
xenial-black
xenial-black2y ago
Hey @amounguluz, sorry for the issue, looks like the drawer is not placing itself in the body and places to its parent instead 🤔 Can you try passing getContainer in modalProps. You can check out the API here https://ant.design/components/drawer#api Let me ping a member with more ant@5 experience and a fellow webstormer 🤣 @yildirayunlu can you check this issue? Looks like something broken with the getContainer or something else with the drawers 🤔
ratty-blush
ratty-blush2y ago
let me see
xenial-black
xenial-black2y ago
We currently send false from the hook, maybe setting it to undefined might do the trick
ratty-blush
ratty-blush2y ago
i did like this)
No description
ratty-blush
ratty-blush2y ago
and now its working great, maybe you can incapsulate it as a native behaviour?) undefined too works correctly)
xenial-black
xenial-black2y ago
Yeah, I think leaving it as default is better but let me check if there's a reason behind setting it to false in useDrawerForm 🤔 Good to hear its working now 🚀
ratty-blush
ratty-blush2y ago
thanks for help!)