diff --git a/package.json b/package.json index 84821c6..96c915e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Budibase-File-Upload", - "version": "1.2.0", + "version": "1.2.1", "description": "An amazing Budibase component!", "license": "MIT", "svelte": "index.js", diff --git a/src/Component.svelte b/src/Component.svelte index 8881d97..a8bafee 100644 --- a/src/Component.svelte +++ b/src/Component.svelte @@ -376,7 +376,7 @@ type="button" value="Browse..." class="browse-button" - onclick="document.getElementById('{buttonID}').click();" + on:click={() => document.getElementById(buttonID).click()} disabled={fieldState.disabled} /> {#if selectedFile}