From 284c8e95299429bf88655ff147af0f59847e7bd5 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 18 Jun 2023 13:08:31 -0400 Subject: [PATCH] Switch component fix -- event handlers for labels and switch button (#255) --- package-lock.json | 4 ++-- package.json | 2 +- src/elements/switch.svelte | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 88fcebe04..c3e1fd102 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@viamrobotics/prime", - "version": "0.2.12", + "version": "0.2.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@viamrobotics/prime", - "version": "0.2.12", + "version": "0.2.13", "license": "Apache-2.0", "devDependencies": { "@floating-ui/dom": "^1.2.6", diff --git a/package.json b/package.json index 2fba6af46..65baa586a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@viamrobotics/prime", - "version": "0.2.12", + "version": "0.2.13", "license": "Apache-2.0", "type": "module", "files": [ diff --git a/src/elements/switch.svelte b/src/elements/switch.svelte index bc25e8ecb..914b06d61 100644 --- a/src/elements/switch.svelte +++ b/src/elements/switch.svelte @@ -43,9 +43,7 @@ const handleClick = () => { >
{#if label} -

- {label} -

+ {/if} {#if tooltip}