initial value (masked) not showing in passwordPrompt until after first keypress
Author: lokal-profilCreated Jul 28, 2025Updated Jul 28, 2025
If a PasswordPrompt is provided with an initial value then this (masked) isn't displayed until after the first keypress., which will most often override the initial value. This means that one cannot visually determine if an initial value was actually provided.
The expected behaviour would before the initial value to show (masked) as soon as the prompt is loaded.
The workaround is to hit tab
Source: enquirer/enquirer