mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
feat!: Added support for separators in menus. (#8767)
* feat!: Added support for separators in menus. * chore: Do English gooder. * fix: Remove menu separators from the DOM during dispose.
This commit is contained in:
@@ -437,7 +437,10 @@ function checkDropdownOptionsInTable(
|
||||
}
|
||||
|
||||
const options = dropdown.getOptions();
|
||||
for (const [, key] of options) {
|
||||
for (const option of options) {
|
||||
if (option === FieldDropdown.SEPARATOR) continue;
|
||||
|
||||
const [, key] = option;
|
||||
if (lookupTable[key] === undefined) {
|
||||
console.warn(
|
||||
`No tooltip mapping for value ${key} of field ` +
|
||||
|
||||
Reference in New Issue
Block a user