Unyson-PageBuilder-Extension
Unyson-PageBuilder-Extension copied to clipboard
Previews trigger save
@ViorelEremia Not sure if it is connected to page builder 100%
I have a preview button above the page builder http://prntscr.com/lynxc4 this just triggers a post-preview click
$( '.thz-builder-preview' ).on( 'mousedown touchend', function (e) {
e.preventDefault();
$( '#post-preview' ).trigger('click');
});
it worked without issues until latest builder and WP 5.0.2
now if you run this in console while builder is open
$( '#post-preview' ).trigger('click');
there is quick flash of Unyson preloader icon and the action now triggers a full save , not preview. Here video http://take.ms/kERlAo
I cant nail it because it happens on/off but 90% of the clicks
Did you attach any events or anything else to post-preview click?
Please note that I have Gutenberg disabled via https://gist.github.com/danyj/ec00057550fd6f73995ab2f8fc8b729f