diff --git a/HISTORY.md b/HISTORY.md index ccc6ec98..c5759163 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -65,6 +65,7 @@ * updated sw.js with new libraries * blocks, objects: added green flag symbol to "when I receive" dropdown menu * objects: support "when I receive" hat blocks with (empty) data when clicking the green flag button in the IDE +* blocks: fixed reverting a mixed-type polyadic sub-slot back to default ### 2022-07-18 * German translation update: Changed translation of "point in direction" to "setze Richtung auf ... Grad" diff --git a/src/blocks.js b/src/blocks.js index ed01b3b1..517e6311 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -1395,7 +1395,7 @@ SyntaxElementMorph.prototype.revertToEmptyInput = function (arg) { } } } else if (this instanceof MultiArgMorph) { - deflt = this.labelPart(this.slotSpec); + deflt = this.labelPart(this.slotSpecFor(inp)); } else if (this instanceof ReporterSlotMorph) { deflt = this.emptySlot(); }