Difference in preview vs codegen with Ant dropdown component

Facing an issue with the Antd Dropdown Component.

It’s rendering fine in Preview mode but taking full width in CodeGen. Also, I can’t hide the dropdown once it’s visible.


Packages Version

"@plasmicpkgs/antd": "^0.0.27",
"antd": "^4.19.2",


nvm, I forgot to add the import for antd styles. I thought it will be added by default considering the component store integration of antd.

Add the following import in app.jsx

import "antd/dist/antd.css";