Only clear if you haven't touched the prompt

This commit is contained in:
Jorge Manrubia
2025-05-07 17:39:00 +02:00
parent 970833fd48
commit fe176aec7c
@@ -22,8 +22,8 @@ export default class extends Controller {
}
hideHelpMenu() {
if (this.#isHelpMenuOpened && this.#hasShowHelpMenuCommand) {
this.#reset()
if (this.#isHelpMenuOpened) {
if (this.#hasShowHelpMenuCommand) { this.#reset() }
this.element.classList.remove(this.helpClass)
}
}