Coder Social home page Coder Social logo

Comments (3)

devintuffy avatar devintuffy commented on September 4, 2024

caused by: createObjectWizard/template.vue, line 169:

return this.$refs.nameTab.validate()

returns false.

This file defines validator: this.nameAvailable, which I would expect to bind validator() to this.nameAvailable, but isn't in this case; it's running the vue-form-generator validator() method instead. This can be found lines 158-197 here: https://github.com/vue-generators/vue-form-generator/blob/master/src/formGenerator.vue

Based on the source I was able to step through the minified version of the code (not recommended), and here's the fields and results objects:

Screen Shot 2019-03-13 at 11 07 48 AM

So it appears to be validating on a bunch of fields that are either hidden or in memory from some other module. Will keep on investigating.

(Note: we recently updated vue-form-generator, checking the version notes to see if there were any validation changes would be a good place to start)

from peregrine-cms.

devintuffy avatar devintuffy commented on September 4, 2024

This page has two forms, one which has what we expect, and the other which has a bunch of nonsense that is causing the validator to fail:

Screen Shot 2019-03-13 at 11 21 29 AM

This additional forms which is stopping the validator from passing is attached to the "tabPanel" and is currently hidden:

Screen Shot 2019-03-13 at 11 23 57 AM

Continuing to investigate.

from peregrine-cms.

devintuffy avatar devintuffy commented on September 4, 2024

So it looks like createObject is trying to validate the "name" and "verify" steps at the same time...ooh, because they both have the same attribute value for vue-form-generator -> ref. Fixing.

from peregrine-cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.