summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js')
-rw-r--r--tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js b/tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js
index dfbd1d46cc..d5343b39e3 100644
--- a/tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js
+++ b/tools/node_modules/eslint/node_modules/inquirer/lib/prompts/password.js
@@ -101,6 +101,11 @@ class PasswordPrompt extends Base {
}
onKeypress() {
+ // If user press a key, just clear the default value
+ if (this.opt.default) {
+ this.opt.default = undefined;
+ }
+
this.render();
}
}