Closed joshburkart closed 1 week ago
Needed to add the following blurb inside the callback argument to gui.update
:
gui_context.output(|output| {
if let Some(url) = &output.open_url {
web_sys::window()
.unwrap()
.open_with_url_and_target(&url.url, "_blank")
.unwrap();
}
});
When I try to make a hyperlink in an
egui
GUI, it renders, but I can't seem to make the link actually work, i.e. clicking it does nothing. This occurs for me both in WebGL and in a native app on my Mac laptop (latest Sonoma MacOS).Example based on the
environment
example:Added a link:
Link renders fine:
Nothing happens when I click on it though :(
Thank you for making this excellent package, I really enjoyed using it!