Skip to content

Commit 629bc9e

Browse files
gonfunkosebjacobs
authored andcommitted
fix: patch the getCheckboxState method in the new flyout (#7)
1 parent c141faf commit 629bc9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/blocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export default function (vm, useCatBlocks) {
328328
this.jsonInit(json);
329329
};
330330

331-
ScratchBlocks.VerticalFlyout.getCheckboxState = function (blockId) {
331+
ScratchBlocks.CheckableContinuousFlyout.prototype.getCheckboxState = function (blockId) {
332332
const monitoredBlock = vm.runtime.monitorBlocks._blocks[blockId];
333333
return monitoredBlock ? monitoredBlock.isMonitored : false;
334334
};

0 commit comments

Comments
 (0)