overlay_page does not close

11 views
Skip to first unread message

John Wong

unread,
Mar 4, 2024, 2:59:48 PMMar 4
to Ajax.org Cloud9 Editor (Ace)
I am using the Ace Editor as a component in React. After opening the Command Palette, when I navigate to a different page, which does not have the Ace Editor, it remains on the page and does not close since it is not rendered in the React root div. How can I fix this?

Harutyun Amirjanyan

unread,
Mar 5, 2024, 2:47:20 PMMar 5
to ace-d...@googlegroups.com
There is no public api to do this, which is probably a bug worth to report to ace, but as a workaround you could use the following

document.querySelector(".ace_prompt_container")?.parentElement?.click()
Reply all
Reply to author
Forward
0 new messages