Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 9165ea3

Browse files
RemizPowerKiKi
authored andcommitted
Fix the pre-upload state animation in Firefox (#32)
When selecting a file before upload the value of `file.loaded` is null, so in Firefox this results in the progressbar having some kind of animation that suggests something is happening. Setting value to 0 fixes the issue.
1 parent 15397a0 commit 9165ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h3>What?</h3>
6969
<div ng-repeat="file in files" style="margin-top: 20px;border-bottom-color: antiquewhite;border-bottom-style: double;">
7070
<div><span>{{file.name}}</span><div style="float:right;"><span>{{file.humanSize}}</span><a ng-click="btn_remove(file)" title="Remove from list to be uploaded"><i class="icon-remove"></i></a></div>
7171
</div>
72-
<progress style="width:400px;" value="{{file.loaded}}" max="{{file.size}}"></progress>
72+
<progress style="width:400px;" value="{{file.loaded ? file.loaded : 0}}" max="{{file.size}}"></progress>
7373
</div>
7474
</div>
7575
</div>

0 commit comments

Comments
 (0)