user_group_create_members: Remove buggy code.

Having this code resulted in pills being deleted on
clicking enter in the pill container as this was
needed before ad11561d31, when we cleared the pill
container after adding users to the list of members.
This commit is contained in:
Sahil Batra 2024-10-22 18:53:32 +05:30 committed by Tim Abbott
parent 330aa25647
commit aa2c7bf1d1
1 changed files with 0 additions and 13 deletions

View File

@ -90,19 +90,6 @@ export function create_handlers($container: JQuery): void {
const user_id = Number.parseInt($elem.attr("data-user-id")!, 10);
undo_soft_remove_user_id(user_id);
});
function add_users({pill_user_ids}: {pill_user_ids: number[]}): void {
add_user_ids(pill_user_ids);
pill_widget.clear();
}
add_subscribers_pill.set_up_handlers({
get_pill_widget: () => pill_widget,
$parent_container: $container,
pill_selector: ".add_members_container .input",
button_selector: ".add_members_container button.add-member-button",
action: add_users,
});
}
export function build_widgets(): void {