Pārlūkot izejas kodu

Reset file input change

Robin Linus 9 gadi atpakaļ
vecāks
revīzija
b1dac708eb
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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();
     }
 };