### Godot version

v4.0.beta10.official [d0398f62f]

### System information

Windows 11

### Issue description

When hovering over the `MenuBar` items - the hover state activates only once (on first hover).

As demonstrated in this video - Debug menu toggles to hover visual style only once:


https://user-images.githubusercontent.com/433527/209774611-a3d6d80b-deb2-466b-b39d-bb480a5ade17.mp4

### Steps to reproduce

See video, try the same in Godot editor.

### Minimal reproduction project

N/A
return menu_cache.size();
}
void MenuBar::set_menu_title(int p_menu, const String &p_title) {
	ERR_FAIL_INDEX(p_menu, menu_cache.size());
	PopupMenu *pm = get_menu_popup(p_menu);
	if (p_title == pm->get_name()) {
		pm->remove_meta("_menu_name");
	} else {
		pm->set_meta("_menu_name", p_title);
	}
	menu_cache.write[p_menu].name = p_title;
	shape(menu_cache.write[p_menu]);
	_update_menu();
}
String MenuBar::get_menu_title(int p_menu) const {
	ERR_FAIL_INDEX_V(p_menu, menu_cache.size(), String());
	return menu_cache[p_menu].name;
}
void MenuBar::set_menu_tooltip(int p_menu, const String &p_tooltip) {
	ERR_FAIL_INDEX(p_menu, menu_cache.size());
	PopupMenu *pm = get_menu_popup(p_menu);
	pm->set_meta("_menu_tooltip", p_tooltip);
	menu_cache.write[p_menu].name = p_tooltip;
}
String MenuBar::get_menu_tooltip(int p_menu) const {