Setup wizard: fix form submit UI blocking when HTML5 form validation isn’t available.
This commit is contained in:
parent
325cea86c6
commit
a15b44d6ec
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue