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