Browse Source

Merge pull request #605 from dobrou/master

fix index value previewCache set
Kartik Visweswaran 9 năm trước cách đây
mục cha
commit
2c84f2bb56
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      js/fileinput.js

+ 1 - 1
js/fileinput.js

@@ -142,7 +142,7 @@
                 data.config[index] = config;
                 data.tags[index] = tags;
             } else {
-                index = content.length;
+                index = content.length - 1;
                 data.content = content;
                 data.config = config;
                 data.tags = tags;