jd-opensource / jd-opensource/taro-ui

模态框不经过点确定或取消按钮就执行下一句

Open
#1,013 2 comments 0 reactions 0 assignees View on GitHub
next
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
模态框不经过点确定或取消按钮就执行下一句

**复现步骤**
![image](https://user-images.githubusercontent.com/5990314/79426970-80ee3a80-7ff6-11ea-939d-3689cdddc1dd.png)

this.setState({messages: {...that.state.messages, isOpened: true, content: message}})//用户未点确定或取消前应该停留在这句,像alert()一样

return isContinue;

**期望行为**
模态框 需要 用户点确定或取消按钮后再执行下一句

**系统信息**
3.0.0-alpha.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.