diff --git a/src/containers/custom-procedures.jsx b/src/containers/custom-procedures.jsx index b7df8793b1027532434277bda7f0808cfc8f11d4..5075ef68d5e2cd428d0c73e5fffa4e764764d4f0 100644 --- a/src/containers/custom-procedures.jsx +++ b/src/containers/custom-procedures.jsx @@ -39,7 +39,10 @@ class CustomProcedures extends React.Component { // Create the procedure declaration block for editing the mutation. this.mutationRoot = this.workspace.newBlock('procedures_declaration'); + // Make the declaration fixed and have no context menu this.mutationRoot.setMovable(false); + this.mutationRoot.contextMenu = false; + this.workspace.addChangeListener(() => { this.mutationRoot.onChangeFn(); // Keep the block centered on the workspace