cancel
Showing results for 
Search instead for 
Did you mean: 

Why Magento 2 don't validate input on keyup?

0 Kudos

Why Magento 2 don't validate input on keyup?

Magento 2 validation is based on jquery.validate plugin. This plugin with default option control the input validation on keyup, like this

 

https://jqueryvalidation.org/files/demo/

 

Why, on magento this function is disabled on mage/validation?

 

 

        options: {
            meta: 'validate',
            onfocusout: false,
            onkeyup: false,
            onclick: false,
            ignoreTitle: true,
            errorClass: 'mage-error',
            errorElement: 'div',

 

 

And why, do you have write you own logic to control the password character on keyup when the plugin has this function.

 

This behaviour with password checked on press, the confirmation checked on "submit" leaves the user confused