Setup wizard: fix form submit UI blocking when HTML5 form validation isn’t available.

This commit is contained in:
Jeff Stieler 2017-09-10 16:33:04 -06:00
parent 325cea86c6
commit a15b44d6ec
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ jQuery( function( $ ) {
$( '.button-next' ).on( 'click', function() {
var form = $( this ).parents( 'form' ).get( 0 );
if ( ( 'function' === typeof form.checkValidity ) && form.checkValidity() ) {
if ( ( 'function' !== typeof form.checkValidity ) || form.checkValidity() ) {
$('.wc-setup-content').block({
message: null,
overlayCSS: {