From 2ce3529db5b61924aeb91689fff825304b4f431c Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Thu, 29 Dec 2022 23:55:36 +0100 Subject: [PATCH] Cart listens to enter key press along with click --- src/lib/components/Cart.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Cart.svelte b/src/lib/components/Cart.svelte index 2f3b033..60118ef 100644 --- a/src/lib/components/Cart.svelte +++ b/src/lib/components/Cart.svelte @@ -5,7 +5,13 @@ $: openClass = $isOpen ? 'open' : ''; -
+
{#if $count > 0} {$count} {/if}