ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.54k stars 2.38k forks source link

CalendarPicker inside custom container #6455

Closed madiyetov closed 8 months ago

madiyetov commented 8 months ago

Version of antd-mobile

5.33.0

What is this feature about?

Support getContainer in CalendarPicker

As a developer who keeps micro frontends inside shadow dom I want to render calendar picker inside the shadow dom. But now it is not possible.

Solution

Pass the getContainer property down to the Popup component here. The popup already supports it.