From ac5c9c17f853050596505fcc9194c996be84eb6e Mon Sep 17 00:00:00 2001 From: Moriel Schottlender Date: Wed, 13 Jul 2016 11:30:55 -0700 Subject: [PATCH] Prevent click propogation when clicking 'mark as read' button Bug: T139339 Change-Id: I3a19a0d01b036fe3c0379e3a5bc0c3f0e5f9473e --- modules/ui/mw.echo.ui.NotificationItemWidget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui/mw.echo.ui.NotificationItemWidget.js b/modules/ui/mw.echo.ui.NotificationItemWidget.js index 032ac0258..bb56ac81d 100644 --- a/modules/ui/mw.echo.ui.NotificationItemWidget.js +++ b/modules/ui/mw.echo.ui.NotificationItemWidget.js @@ -234,6 +234,9 @@ // Remove the animation class this.$element.removeClass( 'mw-echo-ui-notificationItemWidget-initiallyUnseen' ); this.markRead( !this.model.isRead() ); + // Prevent propogation in case there's a link wrapping the content + // and the mark as read/unread button + return false; }; /**