Fix Notifications link on Home header triggering scroll-to-top

This commit is contained in:
Lim Chee Aun 2022-12-10 23:45:52 +08:00
parent b69d9f3fa8
commit f41ca129c2

View file

@ -128,6 +128,9 @@ export default ({ hidden }) => {
class={`button plain ${ class={`button plain ${
snapStates.notificationsNew.length > 0 ? 'has-badge' : '' snapStates.notificationsNew.length > 0 ? 'has-badge' : ''
}`} }`}
onClick={(e) => {
e.stopPropagation();
}}
> >
<Icon icon="notification" size="l" alt="Notifications" /> <Icon icon="notification" size="l" alt="Notifications" />
</a> </a>