fix(file-uploader-item): fix "delete" event regression (#1268)

Fixes #1267
This commit is contained in:
metonym 2022-04-28 07:30:28 -07:00 committed by GitHub
commit 564f25d087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -4053,8 +4053,8 @@
"moduleExports": [], "moduleExports": [],
"slots": [], "slots": [],
"events": [ "events": [
{ "type": "forwarded", "name": "click", "element": "Close" }, { "type": "forwarded", "name": "click", "element": "button" },
{ "type": "forwarded", "name": "keydown", "element": "Close" } { "type": "forwarded", "name": "keydown", "element": "button" }
], ],
"typedefs": [], "typedefs": [],
"rest_props": { "type": "InlineComponent", "name": "Loading" } "rest_props": { "type": "InlineComponent", "name": "Loading" }

View file

@ -30,14 +30,17 @@
{#if invalid} {#if invalid}
<WarningFilled class="bx--file-invalid" /> <WarningFilled class="bx--file-invalid" />
{/if} {/if}
<Close <button
aria-label="{iconDescription}" aria-label="{iconDescription}"
title="{iconDescription}" class:bx--file-close="{true}"
class="bx--file-close" type="button"
tabindex="0"
{...$$restProps} {...$$restProps}
on:click on:click
on:keydown on:keydown
/> >
<Close />
</button>
{/if} {/if}
{#if status === "complete"} {#if status === "complete"}