ant-design/ant-design-mobile

(手机端)在popup组件中使用stepper,屏幕缩放到输入框位置并弹出键盘,输入后屏幕无法再次缩放

Opened this issue · 2 comments

Version of antd-mobile

5.35.0

Operating system and its version

iOS

Browser and its version

IOS Chrome 123.0.6312.52, Safari, Firefox

Sandbox to reproduce

No response

What happened?

(手机端)在popup组件中使用stepper输入,会拉起键盘,同时屏幕会聚焦缩放到填入数字的位置,输入完以后关闭键盘,屏幕无法再次拉伸缩放。

Firefox   Chrome   Safari

类似代码还原:

<div className="App">
    <Popup visible={true}>
        <Form style={{ height: "200px" }}>
          <Form.Item label="输入数字">
            <Stepper step={0.01} style={{ width: "100%" }} />
          </Form.Item>
        </Form>
    </Popup>
  </div>

网站链接: https://stock-returns-calculator.online/

Relevant log output

No response

搞个 codesandbox 并且把详细的操作步骤描述一下,否则不能调试哈~

Hi, HeXavi8.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。