Forráskód Böngészése

Reset file input change

Robin Linus 9 éve
szülő
commit
b1dac708eb
1 módosított fájl, 1 hozzáadás és 0 törlés
  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();
     }
 };