isEditMode after block save

Permalink
Hi,

I'm working on a customblock (in 5.7.3.1) and have something strange happening.
In my view.php I use
$c= \Page::getCurrentPage();
if ($c->isEditMode()) {
    // display that block is disabled (like the google maps block)
} else {
    // Show the block and use some inline js.
}


When in editmode, the "disabled" block is shown. I can edit the block.
When saving the block, the block itself gets displayed! While in editmode!

Strange detail: the google maps block that is also on the page, just keeps in "disabled" mode.

After saving a block (save function), is the view also displayed? (I didn't think so...)

Strange!

SnefIT
 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.