瀏覽代碼

Reset file input change

Robin Linus 9 年之前
父節點
當前提交
b1dac708eb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/elements/file-sharing/file-button-behavior.html

+ 1 - 0
app/elements/file-sharing/file-button-behavior.html

@@ -28,6 +28,7 @@ Chat.FileButtonBehaviorImpl = {
         'tap': '_openDialog'
     },
     _openDialog: function() {
+        this.fileInput.value = null;
         this.fileInput.click();
     }
 };