From e973ee332dff7bcee46a99ab61fe5ff97dd9c12b Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:58:20 -0600 Subject: [PATCH] fix(md prompter): accessible prompt allows blank Allow the accessible markdownEditor prompt to be blank when the blank comes from the result of an interactive session with an editor, even when blankAllowed is false. This behavior aligns the accessible prompter with the behavior of the current standard prompter. --- internal/prompter/prompter.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/prompter/prompter.go b/internal/prompter/prompter.go index c9af35fbf..3e37834db 100644 --- a/internal/prompter/prompter.go +++ b/internal/prompter/prompter.go @@ -253,11 +253,6 @@ func (p *huhPrompter) MarkdownEditor(prompt, defaultValue string, blankAllowed b return "", err } - // TODO: blank not allowed - if !blankAllowed && defaultValue == "" { - panic("blank not allowed and no default value") - } - return text, nil }