Browse Source

Fix #1522: Initial preview rendering correction when preview returned by server immediately after upload

Kartik Visweswaran 5 years ago
parent
commit
b60dd0a8b1
3 changed files with 7 additions and 1 deletions
  1. 6 0
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 6 - 0
CHANGE.md

@@ -1,6 +1,12 @@
 Change Log: `bootstrap-fileinput`
 =================================
 
+## version 5.0.9
+
+**Date:** _under development_
+
+- (bug #1518, #1522): Initial preview rendering correction when preview returned by server immediately after upload.
+
 ## version 5.0.8
 
 **Date:** 13-Dec-2019

+ 1 - 1
js/fileinput.js

@@ -1775,7 +1775,7 @@
                     if (!$h.isArray(content)) {
                         content = content.split(self.initialPreviewDelimiter);
                     }
-                    if (append && data.content && data.content.length) {
+                    if (append && data.content) {
                         index = data.content.push(content[0]) - 1;
                         data.config[index] = config;
                         data.tags[index] = tags;

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff