Skip to content

Commit fb42acd

Browse files
author
Victor George
committed
Clear the <body> "freeze" class to be able to scroll page on click on notification items
1 parent 14a2372 commit fb42acd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/NotificationsDropdown/NotificationsDropdownContainer.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class NotificationsDropdownContainer extends React.Component {
3434
if (!this.props.initialized) {
3535
return null
3636
}
37+
3738
const { sources, notifications, markAllNotificationsRead, toggleNotificationRead, pending } = this.props
3839
const notReadNotifications = filterReadNotifications(notifications)
3940
const notificationsBySources = limitQuantityInSources(
@@ -71,15 +72,15 @@ class NotificationsDropdownContainer extends React.Component {
7172
{...globalSource}
7273
isGlobal
7374
isSimple
74-
onReadToggleClick={toggleNotificationReadWithDelay}
75+
onReadToggleClick={document.body.classList.remove('noScroll'), toggleNotificationReadWithDelay}
7576
/>
7677
}
7778
{projectSources.filter(source => source.notifications.length > 0).map(source =>
7879
<NotificationsSection
7980
{...source}
8081
key={source.id}
8182
isSimple
82-
onReadToggleClick={toggleNotificationReadWithDelay}
83+
onReadToggleClick={document.body.classList.remove('noScroll'), toggleNotificationReadWithDelay}
8384
/>
8485
)}
8586
</div>,

0 commit comments

Comments
 (0)