mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover (#8536)
* fix!: Remove the blocklyMenuItemHighlight CSS class and use the hover * fix: Remove setHighlighted method in menuitem * fix: Remove blocklymenuitemhighlight css class
This commit is contained in:
@@ -249,11 +249,9 @@ 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