Git Product home page Git Product logo

vanilla-validator's People

Contributors

welisonmenezes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vanilla-validator's Issues

Uncaught TypeError: Cannot read properties of undefined (reading 'length')

I'm getting this error only on one instance.

Working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/register AND https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/login

Not working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com -- hover over 'Account'

My code:

// Custom form validation for account and registration forms using Vanilla Validator
var registerConfig = {
  container: '#create_customer',
  validationBy: 'onclick',
  validateOnFieldChanges: true,
  selectors: {
    required: 'vv-required'
  },
  messages: { // can also be set by html attribute 'data-message-error'
    required: 'This field is required'
  }
};
var registerValidator = new VanillaValidator(registerConfig);

var loginConfig = {
  container: '#customer_login',
  validationBy: 'onclick',
  validateOnFieldChanges: true,
  selectors: {
    required: 'vv-required'
  },
  messages: { // can also be set by html attribute 'data-message-error'
    required: 'This field is required'
  }
};
var loginValidator = new VanillaValidator(loginConfig);

The login link provided is essentially the same form as the mini login form. Why does one work and not the other?

ERROR:
Screen Shot 2021-11-17 at 10 13 56 AM

Disable error when tabing into a field

When using the Tab key to move the focus to a field, the destination field will trigger it's validation error property if it is empty but doesn't when clicking on it.
How to prevent the error from triggering when tabing to a field?

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.