chore: improve render message (#84)
* . * refactor upload button * refactor * dispatch action on mention clicked * add profile modal * . * . * . * improve rich_text * improve handle url * make registry simpler * refactor * . * clean up
This commit is contained in:
@@ -572,8 +572,12 @@ impl DockArea {
|
||||
}
|
||||
}
|
||||
DockPlacement::Center => {
|
||||
let focus_handle = panel.focus_handle(cx);
|
||||
// Add panel
|
||||
self.items
|
||||
.add_panel(panel, &cx.entity().downgrade(), window, cx);
|
||||
// Focus to the newly added panel
|
||||
window.focus(&focus_handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user