From c45224aff800dac62c6ca5344684d6ebf4cdd584 Mon Sep 17 00:00:00 2001 From: Elijah Duffy Date: Wed, 16 Jul 2025 17:47:34 -0700 Subject: [PATCH] clean up debug console.log calls --- src/lib/ActionSelect.svelte | 1 - src/lib/Combobox.svelte | 2 -- src/lib/PinInput.svelte | 3 --- src/lib/RadioGroup.svelte | 1 - src/lib/StateMachine.svelte | 2 -- src/lib/TimezoneInput.svelte | 4 ---- 6 files changed, 13 deletions(-) diff --git a/src/lib/ActionSelect.svelte b/src/lib/ActionSelect.svelte index 4d0c289..ed10d13 100644 --- a/src/lib/ActionSelect.svelte +++ b/src/lib/ActionSelect.svelte @@ -76,7 +76,6 @@ const originalFocus = buttonElement.focus.bind(buttonElement); buttonElement.focus = (...args) => { if (allowFocus) { - console.log('allowing focus'); return originalFocus(...args); } }; diff --git a/src/lib/Combobox.svelte b/src/lib/Combobox.svelte index a681733..4c2f9ee 100644 --- a/src/lib/Combobox.svelte +++ b/src/lib/Combobox.svelte @@ -22,7 +22,6 @@ import type { Action } from 'svelte/action'; import { onMount, tick, untrack, type Snippet } from 'svelte'; import { Portal } from '@jsrob/svelte-portal'; - import { browser } from '$app/environment'; import { scale } from 'svelte/transition'; import { generateIdentifier, type IconDef } from './util'; import type { ClassValue } from 'svelte/elements'; @@ -557,7 +556,6 @@ if (e.key === 'ArrowDown' || e.key === 'ArrowUp') { searching = false; - console.log('arrowNavOnly = true'); e.preventDefault(); } diff --git a/src/lib/PinInput.svelte b/src/lib/PinInput.svelte index 21df619..ed2e4e1 100644 --- a/src/lib/PinInput.svelte +++ b/src/lib/PinInput.svelte @@ -57,7 +57,6 @@ // updateHiddenInput updates the hidden input value with the current value of the pin input const updateHiddenInput = () => { - console.log('updating hidden'); hiddenInput.value = value; hiddenInput.dispatchEvent(new KeyboardEvent('keyup')); }; @@ -91,8 +90,6 @@ const clipboardValue = clipboardData.replace(/\D/g, '').slice(0, length); const clipboardValid = await isValueValid(clipboardValue, validateOpts); - console.log('pasting', clipboardValue, clipboardValid); - if (clipboardValid) { value = clipboardValue; inputs[inputs.length - 1].focus(); diff --git a/src/lib/RadioGroup.svelte b/src/lib/RadioGroup.svelte index 3a720ba..9ed6fdf 100644 --- a/src/lib/RadioGroup.svelte +++ b/src/lib/RadioGroup.svelte @@ -25,7 +25,6 @@ let valid = $state(true); const group = new RadioGroup(props); - console.log('group', group.root.id); const isVert = $derived(group.orientation === 'vertical'); diff --git a/src/lib/StateMachine.svelte b/src/lib/StateMachine.svelte index 4ed7db7..98bb364 100644 --- a/src/lib/StateMachine.svelte +++ b/src/lib/StateMachine.svelte @@ -130,7 +130,6 @@ // validate the form const result = await validateForm(formElement); - console.log('validated form', result); if (!result) { buttonComponent.animateBounce(); setTimeout(() => focusFirstInput(true), 50); @@ -236,7 +235,6 @@ index = pages.length - 2; } else { index = pages.length - 1; - console.log(json); } }; diff --git a/src/lib/TimezoneInput.svelte b/src/lib/TimezoneInput.svelte index c27a74c..122fa9a 100644 --- a/src/lib/TimezoneInput.svelte +++ b/src/lib/TimezoneInput.svelte @@ -88,10 +88,6 @@ let timezone = $state( optionsMap[Intl.DateTimeFormat().resolvedOptions().timeZone] ); - - $effect(() => { - console.log(`timezone="${timezone?.value}"`); - });