Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Custom validation closure does not exist and is bypassed #115

Open
dvuckovic opened this issue Dec 31, 2021 · 0 comments
Open

Custom validation closure does not exist and is bypassed #115

dvuckovic opened this issue Dec 31, 2021 · 0 comments

Comments

@dvuckovic
Copy link

Following custom validation closure tutorial in the documentation results in a console error.

import { VueFormBuilderPlugin } from 'v-form-builder';

function myCustomValidation(fieldValue: string, valuesContainer: {}) {
  return fieldValue === 'Seth Phat';
}

Vue.use(VueFormBuilderPlugin, {
  validationClosures: {
    'sethPhatCustomCheck': myCustomValidation
  }
});
Custom Validation Closure sethPhatCustomCheck does not exists. Bypassed

It seems like the custom closure is ignored, i.e. it doesn't get applied or is not reachable by the validator code.

dvuckovic added a commit to wolfnetics/vue-form-builder that referenced this issue Dec 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant