The ContextMenu example in the document has crashed. #2174
Cargo.toml[dependencies]
gpui = "0.2.2"
gpui-component = "0.5.1"Code:use gpui_component::menu::ContextMenuExt;
div()
.child("Right click me")
.context_menu(|menu, window, cx| {
menu.menu("Copy", Box::new(Copy))
.menu("Paste", Box::new(Paste))
.separator()
.menu("Delete", Box::new(Delete))
}) |
Answered by
zhangsan-feng
Mar 27, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



It might be a version issue.