clean up console logs
This commit is contained in:
4
index.ts
4
index.ts
@@ -115,7 +115,6 @@ export const validate: Action<
|
||||
onvalidate: (e: InputValidatorEvent) => void;
|
||||
}
|
||||
> = (node, buildOpts) => {
|
||||
console.log('validate rules attached', node, buildOpts);
|
||||
if (!buildOpts) return;
|
||||
|
||||
const validatorID = nextValidatorID++;
|
||||
@@ -130,7 +129,6 @@ export const validate: Action<
|
||||
|
||||
return {
|
||||
update: (updateOpts) => {
|
||||
console.log('update validator options', node, updateOpts);
|
||||
if (updateOpts) propagateOpts(updateOpts);
|
||||
|
||||
// if current state is invalid, revalidate
|
||||
@@ -431,7 +429,7 @@ export const isInputValid = async (
|
||||
if (opts.func !== undefined) {
|
||||
const result = await opts.func(node);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user