This commit is contained in:
yumoqing 2024-08-29 10:51:00 +08:00
parent 217ce0c09b
commit ab2e35937d

View File

@ -61,7 +61,7 @@ bricks.Menu = class extends bricks.VBox {
this.create_children(w1, item.items);
subw.bind('click', w1.toggle_hide.bind(w1));
} else {
subw.bind('click', this.menu_clicked.bind(this, item))
subw.bind('click', this.regen_menuitem_event.bind(this, item))
w.add_widget(subw);
}
}
@ -88,8 +88,6 @@ bricks.Menu = class extends bricks.VBox {
w[k] = item[k];
}
}
// iw.bind('click', this.regen_menuitem_event.bind(this, item));
// tw.bind('click', this.regen_menuitem_event.bind(this, item));
iw.menuitem = w;
tw.menuitem = w;
w.set_css(this.menuitem_css || 'menuitem');