clean up debug console.log calls
This commit is contained in:
@@ -76,7 +76,6 @@
|
|||||||
const originalFocus = buttonElement.focus.bind(buttonElement);
|
const originalFocus = buttonElement.focus.bind(buttonElement);
|
||||||
buttonElement.focus = (...args) => {
|
buttonElement.focus = (...args) => {
|
||||||
if (allowFocus) {
|
if (allowFocus) {
|
||||||
console.log('allowing focus');
|
|
||||||
return originalFocus(...args);
|
return originalFocus(...args);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
import type { Action } from 'svelte/action';
|
import type { Action } from 'svelte/action';
|
||||||
import { onMount, tick, untrack, type Snippet } from 'svelte';
|
import { onMount, tick, untrack, type Snippet } from 'svelte';
|
||||||
import { Portal } from '@jsrob/svelte-portal';
|
import { Portal } from '@jsrob/svelte-portal';
|
||||||
import { browser } from '$app/environment';
|
|
||||||
import { scale } from 'svelte/transition';
|
import { scale } from 'svelte/transition';
|
||||||
import { generateIdentifier, type IconDef } from './util';
|
import { generateIdentifier, type IconDef } from './util';
|
||||||
import type { ClassValue } from 'svelte/elements';
|
import type { ClassValue } from 'svelte/elements';
|
||||||
@@ -557,7 +556,6 @@
|
|||||||
|
|
||||||
if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
|
||||||
searching = false;
|
searching = false;
|
||||||
console.log('arrowNavOnly = true');
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
|
|
||||||
// updateHiddenInput updates the hidden input value with the current value of the pin input
|
// updateHiddenInput updates the hidden input value with the current value of the pin input
|
||||||
const updateHiddenInput = () => {
|
const updateHiddenInput = () => {
|
||||||
console.log('updating hidden');
|
|
||||||
hiddenInput.value = value;
|
hiddenInput.value = value;
|
||||||
hiddenInput.dispatchEvent(new KeyboardEvent('keyup'));
|
hiddenInput.dispatchEvent(new KeyboardEvent('keyup'));
|
||||||
};
|
};
|
||||||
@@ -91,8 +90,6 @@
|
|||||||
const clipboardValue = clipboardData.replace(/\D/g, '').slice(0, length);
|
const clipboardValue = clipboardData.replace(/\D/g, '').slice(0, length);
|
||||||
const clipboardValid = await isValueValid(clipboardValue, validateOpts);
|
const clipboardValid = await isValueValid(clipboardValue, validateOpts);
|
||||||
|
|
||||||
console.log('pasting', clipboardValue, clipboardValid);
|
|
||||||
|
|
||||||
if (clipboardValid) {
|
if (clipboardValid) {
|
||||||
value = clipboardValue;
|
value = clipboardValue;
|
||||||
inputs[inputs.length - 1].focus();
|
inputs[inputs.length - 1].focus();
|
||||||
|
|||||||
@@ -25,7 +25,6 @@
|
|||||||
let valid = $state(true);
|
let valid = $state(true);
|
||||||
|
|
||||||
const group = new RadioGroup(props);
|
const group = new RadioGroup(props);
|
||||||
console.log('group', group.root.id);
|
|
||||||
const isVert = $derived(group.orientation === 'vertical');
|
const isVert = $derived(group.orientation === 'vertical');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,6 @@
|
|||||||
|
|
||||||
// validate the form
|
// validate the form
|
||||||
const result = await validateForm(formElement);
|
const result = await validateForm(formElement);
|
||||||
console.log('validated form', result);
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
buttonComponent.animateBounce();
|
buttonComponent.animateBounce();
|
||||||
setTimeout(() => focusFirstInput(true), 50);
|
setTimeout(() => focusFirstInput(true), 50);
|
||||||
@@ -236,7 +235,6 @@
|
|||||||
index = pages.length - 2;
|
index = pages.length - 2;
|
||||||
} else {
|
} else {
|
||||||
index = pages.length - 1;
|
index = pages.length - 1;
|
||||||
console.log(json);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -88,10 +88,6 @@
|
|||||||
let timezone = $state<ComboboxOption | undefined>(
|
let timezone = $state<ComboboxOption | undefined>(
|
||||||
optionsMap[Intl.DateTimeFormat().resolvedOptions().timeZone]
|
optionsMap[Intl.DateTimeFormat().resolvedOptions().timeZone]
|
||||||
);
|
);
|
||||||
|
|
||||||
$effect(() => {
|
|
||||||
console.log(`timezone="${timezone?.value}"`);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Combobox
|
<Combobox
|
||||||
|
|||||||
Reference in New Issue
Block a user