diff --git a/src/external/bot-skeleton/scratch/hooks/block.js b/src/external/bot-skeleton/scratch/hooks/block.js index 34fdf715..e7c4df2c 100644 --- a/src/external/bot-skeleton/scratch/hooks/block.js +++ b/src/external/bot-skeleton/scratch/hooks/block.js @@ -190,3 +190,31 @@ window.Blockly.FieldDropdown.prototype.doClassValidation_ = function (newValue) this.setText(text ?? ''); return newValue; }; + +window.Blockly.FieldDropdown.prototype.doClassValidation_1 = function (newValue) { + this.text_ = null; + const text = this?.selectedOption?.[0]; + this.setText(text ?? ''); + return newValue; +}; + +window.Blockly.FieldDropdown.prototype.doClassValidation_2 = function (newValue) { + this.text_ = null; + const text = this?.selectedOption?.[0]; + this.setText(text ?? ''); + return newValue; +}; + +window.Blockly.FieldDropdown.prototype.doClassValidation_3 = function (newValue) { + this.text_ = null; + const text = this?.selectedOption?.[0]; + this.setText(text ?? ''); + return newValue; +}; + +window.Blockly.FieldDropdown.prototype.doClassValidation_4 = function (newValue) { + this.text_ = null; + const text = this?.selectedOption?.[0]; + this.setText(text ?? ''); + return newValue; +};