mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-06 03:00:30 -04:00
make it work for non-droppable inputs
This commit is contained in:
parent
db662b8584
commit
fce83dc2c3
1 changed files with 5 additions and 5 deletions
|
@ -386,15 +386,15 @@ class Blocks {
|
|||
// Changing the value in a dropdown
|
||||
block.fields[args.name].value = args.value;
|
||||
|
||||
if (!optRuntime || !block.parent){
|
||||
if (!optRuntime){
|
||||
break;
|
||||
}
|
||||
|
||||
const parent = this._blocks[block.parent];
|
||||
if (parent.isMonitored) {
|
||||
const flyoutBlock = block.shadow && block.parent ? this._blocks[block.parent] : block;
|
||||
if (flyoutBlock.isMonitored) {
|
||||
optRuntime.requestUpdateMonitor(Map({
|
||||
id: parent.id,
|
||||
params: this._getBlockParams(parent)
|
||||
id: flyoutBlock.id,
|
||||
params: this._getBlockParams(flyoutBlock)
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue