From 0a53b2e6bc930320e06d7351b3ea242534cf8d82 Mon Sep 17 00:00:00 2001 From: Andrej Date: Wed, 4 Oct 2023 17:08:56 +0200 Subject: [PATCH] Fix opening protocol parser import modal [SCI-9452] --- app/assets/javascripts/protocols/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/protocols/index.js b/app/assets/javascripts/protocols/index.js index 50ab82143..bbc01d663 100644 --- a/app/assets/javascripts/protocols/index.js +++ b/app/assets/javascripts/protocols/index.js @@ -663,6 +663,10 @@ var ProtocolsIndex = (function() { // Hack to hide "No file chosen" tooltip fileInput.attr('title', window.webkitURL ? ' ' : ''); + fileInput.on('click', (ev) => { + ev.target.value = null; + }); + fileInput.on('change', function(ev) { var importUrl = fileInput.attr('data-import-url'); var teamId = fileInput.attr('data-team-id');