From 02c04d2f511d098cd797b4680a4831ad34adb536 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 21 Jan 2024 23:26:45 -0800
Subject: fix(checkbox): field selection

---
 src/lib/Settings/SettingCheckboxToggle.svelte | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

(limited to 'src/lib/Settings/SettingCheckboxToggle.svelte')

diff --git a/src/lib/Settings/SettingCheckboxToggle.svelte b/src/lib/Settings/SettingCheckboxToggle.svelte
index a2af0d25..e17eddbc 100644
--- a/src/lib/Settings/SettingCheckboxToggle.svelte
+++ b/src/lib/Settings/SettingCheckboxToggle.svelte
@@ -55,19 +55,18 @@
 	}}
 	role="button"
 	tabindex="0"
-	id="option-text"
 >
 	{#if disabled}
 		<strike>
 			{field}
 		</strike>
-		<slot />
 	{:else}
 		{field}
-		<slot />
 	{/if}
 </span>
 
+<slot />
+
 {#if lineBreak}
 	<br />
 {/if}
@@ -75,13 +74,3 @@
 {#if sectionBreak}
 	<p />
 {/if}
-
-<style>
-	#option-text {
-		cursor: text;
-		user-select: none;
-		-webkit-user-select: none;
-		-moz-user-select: none;
-		-ms-user-select: none;
-	}
-</style>
-- 
cgit v1.2.3

