Jump to content

[SOLVED] PW thinks changes have been made although none have been made


Klenkes
 Share

Recommended Posts

I have a few RPB blocks in _main.php. Nowhere else.

When editing HOME and I make no changes, PW warns me about loosing changes all the time. Although no changes have been made.

At first it all worked fine, but somewhere during the last few days, it started.

I disabled RockMigrations and LiveReload temporarily, but no change.

I am not sure how to troubleshoot this...

Edited by Klenkes
Problem solved
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Thx. This one I have seen myself so it looks I need to fix this. These things are always hard to find as you never know where they are coming from, so a report like this is helpful as it says that it's coming from RockPageBuilder and not another module.

BUT. Could you please provide step-by-step what you are doing and when you are seeing it? Because it does not appear when I'm just editing the homepage and then try to leave! There must be more steps involved?

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hey @Klenkes I've just been working on this again, but it's really hard to fix if I'm not able to reproduce ? 

I think the problem could be these lines in InputfieldRockPageBuilder.js:

// make sure to add InputfieldStateChanged immediately after keydown
// we do not intercept form.submit() because that somehow brakes the save process
$(document).on("keydown", ".InputfieldRockPageBuilder input", function (e) {
  $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged");
  RockPageBuilder.changed(e);
});
$(document).on("keydown", ".InputfieldRockPageBuilder textarea", function (e) {
  $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged");
  RockPageBuilder.changed(e);
});

Could you try commenting these out and see if that makes a change?

Link to comment
Share on other sites

  • 2 weeks later...
  • Klenkes changed the title to [SOLVED] PW thinks changes have been made although none have been made

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...