Skip to content

Commit

Permalink
fix: cannot find modalEnd of undefined stx (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
maryia-deriv authored Dec 7, 2023
1 parent b04d358 commit 37c29b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/MenuStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class MenuStore {
blurInput() {
const stx: Context['stx'] = this.context?.stx;
setTimeout(this.handleDialogStatus, 300);
if (!stx) return;
if (this.open === false) {
(document.activeElement as HTMLElement).blur();
stx.modalEnd();
Expand Down

2 comments on commit 37c29b8

@vercel
Copy link

@vercel vercel bot commented on 37c29b8 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

smart-charts – ./

smart-charts.binary.sx
smart-charts-git-master.binary.sx

@vercel
Copy link

@vercel vercel bot commented on 37c29b8 Dec 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

smart-charts-deriv-app-integration – ./

smart-charts-deriv-app-integration.binary.sx
smart-charts-deriv-app-integration-git-master.binary.sx

Please sign in to comment.