ant-design DatePicker/RangePicker on mobile browsers

ubbxdtey  于 2022-11-05  发布在  其他
关注(0)|答案(4)|浏览(233)
  • I have searched the issues of this repository and believe that this is not a duplicate.

Steps to reproduce

Open codesandbox link and resize browser window to simulate mobile page width and open rangepicker. RangePicker goes outside the browser window, but there isn't a parameter to show only 1 month or something similar.

What is expected?

Adapt to the browser width

What is actually happening?

RangePicker goes outside browser screen

EnvironmentInfo
antd4.6.4
React16.9
SystemAndroid
BrowserChrome
djmepvbi

djmepvbi1#

I am also facing similar issue. There should be a way to render calender one by one

ehxuflar

ehxuflar2#

I tried to wrap two panels on mobile devices but absolute positioning behave strange.
Does anyone know how to adapt RangePicker for mobile device?

2izufjch

2izufjch4#

Any solutions?

Any solutions? 我觉得首先 1. 先阻止唤起输入框, 2.不要focus聚焦, 聚焦会导致组件画面被放大
@afc163

相关问题