mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(file-uploader-item): fix "delete" event regression (#1268)
Fixes #1267
This commit is contained in:
parent
6bb767f8d2
commit
564f25d087
2 changed files with 9 additions and 6 deletions
|
@ -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" }
|
||||||
|
|
|
@ -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"}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue