select: Avoid reopen menu when clearing selection (#1484)
This commit is contained in:
parent
9fa2669ff4
commit
3d606a6909
1 changed files with 1 additions and 0 deletions
|
|
@ -682,6 +682,7 @@ where
|
|||
}
|
||||
|
||||
fn clean(&mut self, _: &ClickEvent, window: &mut Window, cx: &mut Context<Self>) {
|
||||
cx.stop_propagation();
|
||||
self.set_selected_index(None, window, cx);
|
||||
cx.emit(SelectEvent::Confirm(None));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue