mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Revert "fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover…" (#8800)
This reverts commit d6125d4fb9.
This commit is contained in:
@@ -249,9 +249,11 @@ export class Menu {
|
||||
setHighlighted(item: MenuItem | null) {
|
||||
const currentHighlighted = this.highlightedItem;
|
||||
if (currentHighlighted) {
|
||||
currentHighlighted.setHighlighted(false);
|
||||
this.highlightedItem = null;
|
||||
}
|
||||
if (item) {
|
||||
item.setHighlighted(true);
|
||||
this.highlightedItem = item;
|
||||
// Bring the highlighted item into view. This has no effect if the menu is
|
||||
// not scrollable.
|
||||
|
||||
Reference in New Issue
Block a user