clean up debug console.log calls
This commit is contained in:
@@ -76,7 +76,6 @@
|
||||
const originalFocus = buttonElement.focus.bind(buttonElement);
|
||||
buttonElement.focus = (...args) => {
|
||||
if (allowFocus) {
|
||||
console.log('allowing focus');
|
||||
return originalFocus(...args);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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');
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -88,10 +88,6 @@
|
||||
let timezone = $state<ComboboxOption | undefined>(
|
||||
optionsMap[Intl.DateTimeFormat().resolvedOptions().timeZone]
|
||||
);
|
||||
|
||||
$effect(() => {
|
||||
console.log(`timezone="${timezone?.value}"`);
|
||||
});
|
||||
</script>
|
||||
|
||||
<Combobox
|
||||
|
||||
Reference in New Issue
Block a user