Skip to content

Commit

Permalink
Merge pull request #231 from hw-df/openmenu-awaits-beforeopen
Browse files Browse the repository at this point in the history
Wait for BEFOREOPEN to complete before openmenu()
  • Loading branch information
jonataswalker authored Sep 26, 2022
2 parents 32159b0 + d952e5b commit d5f2d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ export default class ContextMenu extends Control {
evt.preventDefault();
}

this.openMenu();
setTimeout(() => {
this.openMenu();
});

evt.target?.addEventListener(
'pointerdown',
Expand Down

0 comments on commit d5f2d6a

Please sign in to comment.