compose: Return focus to DM input after pill selection.

Before this change, the cursor left the DM recipient box after
selecting a pill from the typeahead. This was only the case with
mouse clicks and not with keyboard selection.

This change ensures we always return focus to the input field
after selection.
This commit is contained in:
evykassirer 2023-07-25 11:49:30 -07:00 committed by Tim Abbott
parent 3b63faf33c
commit ec25baa344
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ export function initialize({on_pill_create_or_remove}) {
widget.onPillCreate(() => {
on_pill_create_or_remove();
$("#private_message_recipient").trigger("focus");
});
widget.onPillRemove(() => {