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": [],
"slots": [],
"events": [
{ "type": "forwarded", "name": "click", "element": "Close" },
{ "type": "forwarded", "name": "keydown", "element": "Close" }
{ "type": "forwarded", "name": "click", "element": "button" },
{ "type": "forwarded", "name": "keydown", "element": "button" }
],
"typedefs": [],
"rest_props": { "type": "InlineComponent", "name": "Loading" }

View file

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