Prevent default anchor action when clicking Import

Fixes #1187
This commit is contained in:
Sipke Schoorstra 2021-07-06 15:42:30 +02:00
parent 87c7cb08ec
commit 5ec2b8dd02
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@elsa-workflows/elsa-workflows-studio",
"version": "2.1.2",
"version": "2.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View file

@ -47,6 +47,7 @@ export class ElsaWorkflowPublishButton {
}
async onImportClick(e: Event) {
e.preventDefault();
this.fileInput.value = null;
this.fileInput.click();