When tailoring a page with a Gravity Form in it, I get the endless loading icon, even when the page load is complete. js console says Uncaught TypeError: jQuery(...).mask is not a function
Tracked this to apparent script conflict between GF jquery.maskedinput.min.js and Tailor jquery.maskedinput.min.js As a workaround, I put the following into a function hooked to wp_print_scripts:
When tailoring a page with a Gravity Form in it, I get the endless loading icon, even when the page load is complete. js console says
Uncaught TypeError: jQuery(...).mask is not a function
Tracked this to apparent script conflict between GF
jquery.maskedinput.min.js
and Tailorjquery.maskedinput.min.js
As a workaround, I put the following into a function hooked towp_print_scripts
:if ( ! is_user_logged_in() ) return false; if ( wp_script_is( 'tailor-canvas', 'queue' ) && wp_script_is( 'gform_masked_input', 'queue' ) ) { wp_dequeue_script( 'gform_masked_input' ); wp_deregister_script( 'gform_masked_input' );
Page loads now for editing. Is there a better way to do this? Will need to bake a solution into Tailor somewhere, as GF is a fairly common plugin.