mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-23 04:31:25 -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
|
// Changing the value in a dropdown
|
||||||
block.fields[args.name].value = args.value;
|
block.fields[args.name].value = args.value;
|
||||||
|
|
||||||
if (!optRuntime || !block.parent){
|
if (!optRuntime){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const parent = this._blocks[block.parent];
|
const flyoutBlock = block.shadow && block.parent ? this._blocks[block.parent] : block;
|
||||||
if (parent.isMonitored) {
|
if (flyoutBlock.isMonitored) {
|
||||||
optRuntime.requestUpdateMonitor(Map({
|
optRuntime.requestUpdateMonitor(Map({
|
||||||
id: parent.id,
|
id: flyoutBlock.id,
|
||||||
params: this._getBlockParams(parent)
|
params: this._getBlockParams(flyoutBlock)
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue