Skip to content

Commit

Permalink
fix: incorrect blockchange firing (google#7492)
Browse files Browse the repository at this point in the history
* BlockChange event disabled

* BlockChange event disabled

* executed command (npm run format)
  • Loading branch information
devbysn authored Sep 21, 2023
1 parent 12ac358 commit 4a6d439
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1672,8 +1672,11 @@ export class Block implements IASTNodeLocation, IDeletable {
}

if (json['inputsInline'] !== undefined) {
eventUtils.disable();
this.setInputsInline(json['inputsInline']);
eventUtils.enable();
}

// Set output and previous/next connections.
if (json['output'] !== undefined) {
this.setOutput(true, json['output']);
Expand Down

0 comments on commit 4a6d439

Please sign in to comment.