From 6686621b0bf7927cbf747dc15611905b3f0a35f6 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 10 Mar 2017 16:36:13 -0800 Subject: [PATCH] Fix file dialog --- js/views/file_input_view.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 583269e60..40597a895 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -24,6 +24,9 @@ className: 'file-input', initialize: function(options) { this.$input = this.$('input[type=file]'); + this.$input.click(function(e) { + e.stopPropagation(); + }); this.thumb = new Whisper.AttachmentPreviewView(); this.$el.addClass('file-input'); this.window = options.window;