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:
Arun Chandran
2024-08-21 21:31:07 +05:30
committed by GitHub
parent 14d119b204
commit d6125d4fb9
3 changed files with 1 additions and 25 deletions

View File

@@ -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.