Skip to content

Commit f9fb226

Browse files
authored
fix: Disable undoing events generated from flyout layout (#9533)
1 parent 65caa9f commit f9fb226

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/flyout_base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ export abstract class Flyout
616616
*/
617617
show(flyoutDef: toolbox.FlyoutDefinition | string) {
618618
this.workspace_.setResizesEnabled(false);
619+
eventUtils.setRecordUndo(false);
619620
this.hide();
620621
this.clearOldBlocks();
621622

@@ -641,6 +642,7 @@ export abstract class Flyout
641642
this.width_ = 0;
642643
}
643644
this.reflow();
645+
eventUtils.setRecordUndo(true);
644646
this.workspace_.setResizesEnabled(true);
645647

646648
// Listen for block change events, and reflow the flyout in response. This

0 commit comments

Comments
 (0)