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

fix: dialog传入closeBtn为false,依旧渲染了关闭按钮元素,可以响应关闭事件 #451

Merged
merged 4 commits into from
Feb 26, 2022

Conversation

gh-mrhuang
Copy link
Contributor

@gh-mrhuang gh-mrhuang commented Feb 23, 2022

🤔 这个 PR 的性质是?dialog组件bug

  • 日常 bug 修复

🔗 相关 Issue

💡 需求背景和解决方案

问题:传入的closeBtn为false,依然渲染了span元素,虽然不可见,但是可以响应鼠标事件,如图:
image
image
修改方法:如图
image

📝 更新日志

  • fix(dialog): 传入closeBtn为false,依旧渲染了关闭按钮元素

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

src/dialog/dialog.tsx Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2022

完成

@uyarn
Copy link
Collaborator

uyarn commented Feb 25, 2022

改动会影响snapshot 需要更新成符合预期的snapshot

@gh-mrhuang
Copy link
Contributor Author

了解,我修复一下~

Copy link
Collaborator

@uyarn uyarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@uyarn uyarn merged commit 16954ab into Tencent:develop Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants