Ant-design-mobile: 在IOS系统的微信的HTML5页面中modal.alert 无法关闭

Created on 20 Apr 2018  ·  4Comments  ·  Source: ant-design/ant-design-mobile

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.8

Environment

在IOS系统的微信的HTML5页面中,React 16.3.0, Next.js 5.1.0

Reproduction link

https://mobile.ant.design/components/modal-cn/

Steps to reproduce

点击按钮后,onPress 方法不执行,alert模态框 不关闭

What is expected?

执行按钮操作,并关闭模态框

What is actually happening?

点击模态框中的任何按钮都没有反应

Most helpful comment

you need fastclick

import fastclick from 'fastclick'
fastclick.attach(document.body, {})

All 4 comments

Translation of this issue:


modal.alert cannot be turned off in WeChat HTML5 page of IOS system

  • [] I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.8

Environment

In the HTML5 page of WeChat on IOS system, react 16.3.0

Reproduction link

[https://mobile.ant.design/components/modal-en/] (https://mobile.ant.design/components/modal-en/)

Steps to reproduce

After the button is clicked, the onPress method is not executed and the alert modal box is not closed

What is expected?

Perform a button operation and close the modal box

What is actually happening?

Click on any button in the modal box does not respond

you need fastclick

import fastclick from 'fastclick'
fastclick.attach(document.body, {})

the same problem.

这个问题的解决方法 是什么?

Was this page helpful?
0 / 5 - 0 ratings