mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
fix: prevent crash when clicking on a field to delete a block (#7621)
* Fix: #7587 * Fix: Lint error * Fix: Move expression out of loop * Fix: No need to use temp variable
This commit is contained in:
@@ -1183,6 +1183,9 @@ export class BlockSvg
|
||||
bringToFront(blockOnly = false) {
|
||||
/* eslint-disable-next-line @typescript-eslint/no-this-alias */
|
||||
let block: this | null = this;
|
||||
if (block.isDeadOrDying()) {
|
||||
return;
|
||||
}
|
||||
do {
|
||||
const root = block.getSvgRoot();
|
||||
const parent = root.parentNode;
|
||||
|
||||
Reference in New Issue
Block a user