Skip to content

Commit fc565ae

Browse files
author
shleewhite
committed
fix: issue where pressing escape doesnt reset ability to scroll
1 parent e11f498 commit fc565ae

File tree

1 file changed

+1
-0
lines changed
  • packages/components/src/components/hds/app-side-nav

1 file changed

+1
-0
lines changed

packages/components/src/components/hds/app-side-nav/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export default class HdsAppSideNav extends Component<HdsAppSideNavSignature> {
159159
if (event.key === 'Escape' && !this._isMinimized && !this._isDesktop) {
160160
this._isMinimized = true;
161161
this.synchronizeInert();
162+
this.unlockBodyScroll();
162163
}
163164
}
164165

0 commit comments

Comments
 (0)