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

Inconsistent behavior when setting status or color in Badge #2121

Closed
1 task done
duckness opened this issue Apr 20, 2020 · 2 comments
Closed
1 task done

Inconsistent behavior when setting status or color in Badge #2121

duckness opened this issue Apr 20, 2020 · 2 comments
Labels

Comments

@duckness
Copy link

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

Version

1.5.3

Environment

Windows 10, Chrome 80.0.3987.163, Vue 2.6.11

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Set dot in a-badge without setting color or status.
Now set dot and set color or status.

What is expected?

  1. Badge is in the same location
  2. Badge disappears if dot is set to false

What is actually happening?

  1. Badge is slightly higher when color or status is set
  2. Badge remains there even if dot is set to false

SQsS3cIi7T

@tangjinzhou
Copy link
Member

I can solve the first problem;
But the second problem cannot be solved, the default value of dot is false, but you can use v-show to solve it

zhoudewei2526 pushed a commit to zhoudewei2526/ant-design-vue that referenced this issue Apr 23, 2020
@github-actions
Copy link

github-actions bot commented May 1, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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

No branches or pull requests

2 participants