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;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user