mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
We had this problem where clicking a hyperlink bubbles up and causes a click on the message, which causes the composebox to open. We "fixed" this by setting cancelBubble (or, even better, calling stopPropagation()). Unfortunately, on Firefox, this fix breaks Ctrl-click and Shift-click, because those are (apparently) implemented by adding an event listener on link clicks, and stopPropagation prevents them from being called. We instead work around this by handling this case in the click handler of the parent element. (This allows the normal URL click AND Firefox's bound event handlers for Ctrl and Shift to run.) This resolves Trac #374. (imported from commit 16fb3aa6fc582f1fba5009812e0b1178ce7c5bb7)
18 KiB
18 KiB