Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previews trigger save #112

Open
danyj opened this issue Dec 23, 2018 · 1 comment
Open

Previews trigger save #112

danyj opened this issue Dec 23, 2018 · 1 comment

Comments

@danyj
Copy link

danyj commented Dec 23, 2018

@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?

@danyj danyj mentioned this issue Dec 23, 2018
@danyj
Copy link
Author

danyj commented Dec 23, 2018

Please note that I have Gutenberg disabled via https://gist.github.com/danyj/ec00057550fd6f73995ab2f8fc8b729f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant