Skip to content

Commit f2cf0ca

Browse files
authored
Allow HTML in item.msg (#10)
1 parent 86bc988 commit f2cf0ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SvelteToast.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ul {
2828
padding: 0;
2929
list-style-type: none;
3030
z-index: 9999;
31-
pointer-events: none;
31+
pointer-events: auto;
3232
top: var(--toastContainerTop,1.5rem);
3333
right: var(--toastContainerRight,2rem);
3434
bottom: var(--toastContainerBottom,auto);

src/ToastItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $: if (prevProgress !== item.progress) {
8282
{#if item.title}
8383
<div class="_toastTitle">{item.title}</div>
8484
{/if}
85-
{item.msg}
85+
{@html item.msg}
8686
</div>
8787

8888
{#if item.dismissable}

0 commit comments

Comments
 (0)