Skip to content

Commit 70136a3

Browse files
committed
fix checkboxes (vm part)
1 parent 44c475f commit 70136a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/engine/blocks.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class Blocks {
668668
*/
669669
changeBlock (args) {
670670
// Validate
671-
if (['field', 'mutation', 'checkbox'].indexOf(args.element) === -1) return;
671+
if (['field', 'mutation', 'shadow', 'checkbox'].indexOf(args.element) === -1) return;
672672
let block = this._blocks[args.id];
673673
if (typeof block === 'undefined') return;
674674
switch (args.element) {
@@ -721,6 +721,9 @@ class Blocks {
721721
case 'mutation':
722722
block.mutation = mutationAdapter(args.value);
723723
break;
724+
case 'shadow':
725+
block.shadow = args.value;
726+
break;
724727
case 'checkbox': {
725728
// A checkbox usually has a one to one correspondence with the monitor
726729
// block but in the case of monitored reporters that have arguments,

0 commit comments

Comments
 (0)