Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal中alert和prompt的ios兼容问题 #409

Closed
bywwcnll opened this issue Oct 21, 2016 · 6 comments
Closed

Modal中alert和prompt的ios兼容问题 #409

bywwcnll opened this issue Oct 21, 2016 · 6 comments
Assignees

Comments

@bywwcnll
Copy link

bywwcnll commented Oct 21, 2016

antdMobileModal.zip

本地环境

  • antd-mobile 版本:0.9.3
  • 操作系统及其版本:win10专业版
  • 浏览器及其版本:Chrome 版本 53.0.2785.143 m,Safari 5+

你做了什么?

使用Modal组件的alert或prompt

import { Button, Modal } from 'antd-mobile'
const alert = Modal.alert;
render(
    <div>
        <Button onClick={ ()=>{
            alert('删除', '确定删除么???', [
                { text: '取消', onPress: () => console.log('cancel') },
                { text: '确定', onPress: () => console.log('ok') },
            ]);
       } }>点我</Button>
    </div>,
    document.querySelector("#app")
);    

你期待的结果是:

Chrome中的IPhone模拟界面(或Safari浏览器中)和Android或pc界面中一样可以点击Modal.alert中的取消或确定按钮

实际上的结果:

Chrome中的IPhone模拟界面(或Safari浏览器中)不能点击Modal.alert中的取消或确定按钮来隐藏对话框

可重现的在线演示

https://codepen.io/w2233540467/pen/vXvKQN

@silentcloud
Copy link
Contributor

test

@silentcloud
Copy link
Contributor

有可能和 issue 415 是一个情况,目前已经提交修复

@silentcloud silentcloud self-assigned this Oct 24, 2016
@pfdgithub
Copy link

pfdgithub commented Oct 26, 2016

0.9.4 遇到有同样的问题,点击按钮无法关闭弹窗,且控制台报错。什么时候能修复发布?
warning.js:36 Warning: Unknown propactiveStyleon <a> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop in a (created by FooterButton) in FooterButton (created by TouchableFeedbackComponent) in TouchableFeedbackComponent (created by Modal) in div (created by Modal) in div (created by Dialog) in div (created by Dialog) in div (created by LazyRenderBox) in LazyRenderBox (created by Dialog) in AnimateChild (created by Animate) in Animate (created by Dialog) in div (created by Dialog) in div (created by Dialog) in Dialog

@afc163
Copy link
Member

afc163 commented Oct 26, 2016

@pfdgithub +1

@silentcloud
Copy link
Contributor

0.9.5

@lock
Copy link

lock bot commented May 28, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants