Skip to content

Commit

Permalink
chore(overlay): fix eslint unsafe assignment any value
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarin-Udompanish authored Feb 17, 2022
1 parent 1319d8c commit c7c30b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/elements/src/overlay/elements/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ export class Overlay extends ResponsiveElement {
});
}

const enablingFocusManagement = (opening && !this.noFocusManagement) || (opened && changedProperties.get('noFocusManagement'));
const enablingFocusManagement = (opening && !this.noFocusManagement) || (opened && !!changedProperties.get('noFocusManagement'));
const disablingFocusManagement = opened && changedProperties.get('noFocusManagement') === false;
if (enablingFocusManagement) {
focusableRegister(this);
Expand All @@ -818,7 +818,7 @@ export class Overlay extends ResponsiveElement {
}

const enablingBackdrop = (opening && this.withBackdrop) || (opened && changedProperties.get('withBackdrop') === false);
const disablingBackdrop = opened && changedProperties.get('withBackdrop');
const disablingBackdrop = opened && !!changedProperties.get('withBackdrop');
if (enablingBackdrop) {
backdropRegister(this);
}
Expand Down

0 comments on commit c7c30b9

Please sign in to comment.