Displayonly disables the caption and therefore the value could only be guessed (reopen)
Bhoft opened this issue · comments
Prerequisites
- I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
- The issue still exists against the latest
master
branch of bootstrap-star-rating. - This is not an usage question. I confirm having read the plugin documentation and demos.
- This is not a general programming / coding question. (Those should be directed to the webtips Q & A forum).
- I have attempted to find the simplest possible steps to reproduce the issue.
- I have included a failing test as a pull request (Optional).
Steps to reproduce the issue
This is a issue is still existing
#177
Thanks for adding the display caption as title mode but there is still one issue.
In my code I have the possibility to show the caption as a title, so you see the current value on hover.
But also (and this isn't possible in your version) show the caption as well.
This is needed e.g. if you create a pdf from the html code and the value of the rating is not integer but some decimal value (like 3.4 of 5).
With only the "stars" it is not correctly visible if the rating is 3.4 or 3.5 or ..
So it should be possible to also print out the caption the same way as the rating shows in input mode.
Expected behavior and actual behavior
When I follow those steps, I see...
I was expecting to have enable also the caption.
But even if i enable it by showCaption => true
it is disabled by your displayOnly mode.
bootstrap-star-rating/js/star-rating.js
Lines 256 to 259 in 67b2fbc
You shoudn't set showCaption to false automatically when displayOnly mode is enabled.
Resolved via update to release v4.0.5.