Prevent remoting dialog from losing focus (#11820)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2024-05-14 14:32:37 -06:00 committed by GitHub
parent 748cd38d77
commit bf4478703b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -992,6 +992,9 @@ impl Render for DevServerProjects {
.on_mouse_down_out(cx.listener(|this, _, cx| {
if matches!(this.mode, Mode::Default(None)) {
cx.emit(DismissEvent)
} else {
this.focus_handle(cx).focus(cx);
cx.stop_propagation()
}
}))
.pb_4()