Skip to content

Commit

Permalink
Fix spelling error
Browse files Browse the repository at this point in the history
Co-authored-by: David Sevilla Martin <[email protected]>
  • Loading branch information
davwheat and dsevillamartin committed Sep 10, 2021
1 parent 9ebb0dc commit 6d5deee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/src/common/utils/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class Drawer {

this.appElement = document.getElementById('app');
this.focusTrap = createFocusTrap('#drawer', { allowOutsideClick: true });
this.drawerAailableMediaQuery = window.matchMedia(
this.drawerAvailableMediaQuery = window.matchMedia(
`(max-width: ${getComputedStyle(document.documentElement).getPropertyValue('--screen-phone-max')})`
);
}
Expand Down Expand Up @@ -57,7 +57,7 @@ export default class Drawer {
* @internal
* @type {MediaQueryList}
*/
drawerAailableMediaQuery;
drawerAvailableMediaQuery;

/**
* Check whether or not the drawer is currently open.
Expand All @@ -84,7 +84,7 @@ export default class Drawer {
*/

this.focusTrap.deactivate();
this.drawerAailableMediaQuery.removeListener(this.resizeHandler);
this.drawerAvailableMediaQuery.removeListener(this.resizeHandler);

if (!this.isOpen()) return;

Expand All @@ -106,7 +106,7 @@ export default class Drawer {
show() {
this.appElement.classList.add('drawerOpen');

this.drawerAailableMediaQuery.addListener(this.resizeHandler);
this.drawerAvailableMediaQuery.addListener(this.resizeHandler);

this.$backdrop = $('<div/>').addClass('drawer-backdrop fade').appendTo('body').on('click', this.hide.bind(this));

Expand Down

0 comments on commit 6d5deee

Please sign in to comment.