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

ProgressBar does not show zero percent #1272

Closed
JoseGoncalves opened this issue May 19, 2021 · 2 comments
Closed

ProgressBar does not show zero percent #1272

JoseGoncalves opened this issue May 19, 2021 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2-portable
Milestone

Comments

@JoseGoncalves
Copy link

JoseGoncalves commented May 19, 2021

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

Current behavior
When showValue prop is set to true and value is equal to 0 the percentage data is not shown.

Expected behavior
I would expect the ProgressBar to present 0%.

  • Vue version: 3.0.11
  • PrimeVue version: 3.5.0
  • Browser: [Chromium 91 | Firefox 88]
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jun 23, 2021
@tugcekucukoglu tugcekucukoglu added this to the 3.5.2 milestone Jun 23, 2021
@tugcekucukoglu tugcekucukoglu self-assigned this Jun 23, 2021
@tugcekucukoglu
Copy link
Member

Thanks for your contribution. It is manually fixed. There is no need to add extra computed prop.

@hagabaka
Copy link

This is broken again in 3.12.5, which makes the label only render if (value != null && value !== 0) && showValue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working vue2-portable
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants