WP Blocks with hide/show

I created a fly-out menu using Pinegrow interactions. Works great on the front end. But in wp-admin when editing the page the fly-out always shows since js is not loaded. It makes editing the rest of the page impossible. Suggestions

You could probably add an editor style which hides the flyout.

Another thing would be enqueueing the script inside of Gutenberg that’s not available in Pinegrow (yet) see here: How to include assets properly (plugin) - #6 by Wolfgang.Hartl

But you could enqueue the script yourself using wp_enqueue_block_editor_assets for example.