clean up console logs

This commit is contained in:
Elijah Duffy
2025-07-08 12:25:05 -07:00
parent 9e8f9f966e
commit 4a0c86f084

View File

@@ -115,7 +115,6 @@ export const validate: Action<
onvalidate: (e: InputValidatorEvent) => void; onvalidate: (e: InputValidatorEvent) => void;
} }
> = (node, buildOpts) => { > = (node, buildOpts) => {
console.log('validate rules attached', node, buildOpts);
if (!buildOpts) return; if (!buildOpts) return;
const validatorID = nextValidatorID++; const validatorID = nextValidatorID++;
@@ -130,7 +129,6 @@ export const validate: Action<
return { return {
update: (updateOpts) => { update: (updateOpts) => {
console.log('update validator options', node, updateOpts);
if (updateOpts) propagateOpts(updateOpts); if (updateOpts) propagateOpts(updateOpts);
// if current state is invalid, revalidate // if current state is invalid, revalidate
@@ -431,7 +429,7 @@ export const isInputValid = async (
if (opts.func !== undefined) { if (opts.func !== undefined) {
const result = await opts.func(node); const result = await opts.func(node);
if (!result) { if (!result) {
console.log('input is invalid', 'val:', val, 'baseval:', opts.baseval); console.debug('input is invalid', 'val:', val, 'baseval:', opts.baseval, input);
return false; return false;
} }
} }