Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
dropdown_widget: Don't show focus line on sticky bottom click as well.
Shubham Padia4c1dcd6a7743
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.tsindex da010dd29e5..4faf1dc459d 100644--- a/web/src/dropdown_widget.ts+++ b/web/src/dropdown_widget.ts@@ -661,11 +661,11 @@ export class DropdownWidget {}});- // We want to prevent focus from moving to the list item- // when it is clicked with a mouse. This is necessary because- // it was reported that the blue focus outline briefly appears- // when items are clicked, before the dropdown closes.- $popper.on("mousedown", ".list-item", (event) => {+ // We want to prevent focus from moving to the list item or the+ // sticky bottom when it is clicked with a mouse. This is necessary+ // because it was reported that the blue focus outline briefly+ // appears when items are clicked, before the dropdown closes.+ $popper.on("mousedown", ".list-item, .sticky-bottom-option-button", (event) => {event.preventDefault();});