We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 892469e commit 4e81d2dCopy full SHA for 4e81d2d
src/index.js
@@ -5,9 +5,11 @@ const fieldComponents = require("./utils/fieldsLoader").default;
5
const abstractField = require("./fields/abstractField").default;
6
const install = (Vue, options) => {
7
Vue.component("VueFormGenerator", module.exports.component);
8
- if(options && options.validators) {
9
- for(let key in options.validators) {
10
- validators[key] = options.validators[key];
+ if (options && options.validators) {
+ for (let key in options.validators) {
+ if ({}.hasOwnProperty.call(options.validators, key)) {
11
+ validators[key] = options.validators[key];
12
+ }
13
}
14
15
};
0 commit comments