Skip to content

Commit

Permalink
Change logic for resrict scroll (#6632)
Browse files Browse the repository at this point in the history
Co-authored-by: Brittany Archibeque <brittanyarchibeque@Brittanys-MacBook-Pro-2.local>
Co-authored-by: Eric Soderberg <eric.soderberg@hpe.com>
  • Loading branch information
3 people committed Feb 9, 2023
1 parent dbf7a14 commit f1b5155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Layer/LayerContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const LayerContainer = forwardRef(
// restricting scroll could inhibit the user's
// ability to scroll the page while the layer is open.
restrictScroll={
!layerTarget || hitResponsiveBreakpoint ? true : undefined
!layerTarget && hitResponsiveBreakpoint ? true : undefined
}
trapFocus
>
Expand Down

0 comments on commit f1b5155

Please sign in to comment.