mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
dropdown_widget: Allow more than one click on dropdown.
The new saved replies feature requires removing saved replies by clicking on trash icon on dropdown item. So dropdown widget should allow more than one click without closing it to delete multiple saved replies.
This commit is contained in:
@@ -398,7 +398,7 @@ export class DropdownWidget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Click on item.
|
// Click on item.
|
||||||
$popper.one("click", ".list-item", (event) => {
|
$popper.on("click", ".list-item", (event) => {
|
||||||
const selected_unique_id = $(event.currentTarget).attr("data-unique-id");
|
const selected_unique_id = $(event.currentTarget).attr("data-unique-id");
|
||||||
assert(selected_unique_id !== undefined);
|
assert(selected_unique_id !== undefined);
|
||||||
this.current_value = selected_unique_id;
|
this.current_value = selected_unique_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user