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:
Aaron Dodson
2025-02-27 14:00:40 -08:00
committed by GitHub
parent 0ed6c82acc
commit fa4fce5c12
8 changed files with 186 additions and 48 deletions

View File

@@ -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 ` +