Describe the bug
if the value exceeds 100% the progress bar does not display anything, do you think this is normal operation, or am i doing something wrong ? (open question)
Steps To Reproduce
Steps to reproduce the behavior:
- use
<x-adminlte-progress theme="teal" value="2083.48" animated with-label/>
- See error
must be full :
Environment
Item | Version |
---|---|
Laravel | 9.0 |
Additional context
to work around force the value to 100
@if($Task->progress() > 100 )
<x-adminlte-progress theme="teal" value="100" animated/>
@else
<x-adminlte-progress theme="teal" value="{{ $Task->progress() }}" animated/>
@endif
@billyboy35 I will check this out, maybe we can add some checks over the
value
attribute.@dfsmania i can try to do this if you want
@billyboy35 sure, the change should be easy to implement, just add additional checks to the Progress Component constructor. Actually, it just check that the value property is between
0
and100
, otherwise it will be set as0
. In the new version, we should check if the value is below to0
or above to100
to set it as0
or100
respectively...