Tencent / Tencent/tdesign-miniprogram

[Dialog] 命令调用点击取消后回调catch的问题

Open
#1,567 3 comments 0 reactions 1 assignee View on GitHub

@jin0209 is already working on this.

Since Feb 9, 2023.

🏃 in progress good first issue
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

这个功能解决了什么问题

点击和确认都触发then的回调,在then回调中传入点击的结果。这个微信小程序官方提供的弹出框就这样做的。

目前点击取消后会出发catch的回调会影响点击数的统计。触发的场景是用户点击了确认,触发的then的回调方法中出现异常,后续同时也会触发catch的回调。

你建议的方案是什么

点击和确认都触发then的回调,在then回调中传入点击的结果。这个微信小程序官方提供的弹出框就这样做的。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.