From 743f64f502984825af171317255b5ade7b65cbfe Mon Sep 17 00:00:00 2001 From: PierreDemailly <39910767+PierreDemailly@users.noreply.github.com> Date: Sat, 30 Sep 2023 18:48:30 +0200 Subject: [PATCH] fix: frozen subsequent select after using confirm (#43) --- src/confirm-prompt.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/confirm-prompt.js b/src/confirm-prompt.js index 772acfe..53744a0 100644 --- a/src/confirm-prompt.js +++ b/src/confirm-prompt.js @@ -65,9 +65,8 @@ export class ConfirmPrompt extends AbstractPrompt { } #onKeypress(resolve, value, key) { - this.stdin.pause(); this.stdout.moveCursor(-this.#getQuestionQuery().length, 0); - this.stdout.clearScreenDown(() => this.stdin.resume()); + this.stdout.clearScreenDown(); if (key.name === "return") { resolve(this.selectedValue);