Skip to content

Commit

Permalink
correct last update
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijbet committed Nov 27, 2024
1 parent 29d5e3b commit 253415f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/calcite-components/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class Modal
});

private escapeDeactivates = (event: KeyboardEvent) => {
if (event.defaultPrevented || this.escapeDisabled || !this.focusTrapDisabled) {
if (event.defaultPrevented || this.escapeDisabled) {
return false;
}
event.preventDefault();
Expand Down Expand Up @@ -337,7 +337,7 @@ export class Modal
private keyDownHandler = (event: KeyboardEvent): void => {
const { defaultPrevented, key } = event;

if (defaultPrevented) {
if (defaultPrevented || !this.focusTrapDisabled) {
return;
}

Expand Down

0 comments on commit 253415f

Please sign in to comment.