Skip to content

Commit

Permalink
Fix some broken functions
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings authored Jan 31, 2024
1 parent fc97dd1 commit 335cc2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/field_textdropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Blockly.FieldTextDropdown.prototype.showEditor_ = function() {
* (human-readable text, language-neutral name).
* @private
*/
Blockly.FieldTextDropdown.prototype.getOptions_ = Blockly.FieldDropdown.prototype.getOptions_;
Blockly.FieldTextDropdown.prototype.getOptions = Blockly.FieldDropdown.prototype.getOptions;

/**
* Position a drop-down arrow at the appropriate location at render-time.
Expand All @@ -156,6 +156,13 @@ Blockly.FieldTextDropdown.prototype.positionArrow = Blockly.FieldDropdown.protot
*/
Blockly.FieldTextDropdown.prototype.showDropdown_ = Blockly.FieldDropdown.prototype.showEditor_;

/**
* Handle the selection of an item in the dropdown menu.
* @param {!goog.ui.Menu} menu The Menu component clicked.
* @param {!goog.ui.MenuItem} menuItem The MenuItem selected within menu.
*/
Blockly.FieldTextDropdown.prototype.onItemSelected = Blockly.FieldDropdown.prototype.onItemSelected;

/**
* Callback when the drop-down menu is hidden.
*/
Expand Down

0 comments on commit 335cc2f

Please sign in to comment.