From 1169b04a456e737d14d1520b98163c7bc95d15f3 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Tue, 7 Feb 2023 21:29:26 +0100 Subject: [PATCH] chore: Make dropdownDispose available for plugins. (#6826) Specifically in Blockly Samples the field-grid-dropdown wants to call this inherited function. --- core/field_dropdown.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/field_dropdown.ts b/core/field_dropdown.ts index 54cb0dc6f..50734bd55 100644 --- a/core/field_dropdown.ts +++ b/core/field_dropdown.ts @@ -330,7 +330,7 @@ export class FieldDropdown extends Field { /** * Disposes of events and DOM-references belonging to the dropdown editor. */ - private dropdownDispose_() { + protected dropdownDispose_() { if (this.menu_) { this.menu_.dispose(); } @@ -585,8 +585,8 @@ export class FieldDropdown extends Field { /** * Use the `getText_` developer hook to override the field's text - * representation. Get the selected option text. If the selected option is an - * image we return the image alt text. + * representation. Get the selected option text. If the selected option is + * an image we return the image alt text. * * @returns Selected option text. */