mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
fix(vscode): hide duplicate preview text while editing custom question answer (#9129)
The question tool's custom answer option showed the user's input twice — once as a preview description inside the option button, and again in the input field below. Hide the preview while the input form is open so only the live input is visible.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"kilo-code": patch
|
||||
---
|
||||
|
||||
Fix duplicate text shown when typing a custom answer in the question tool. The preview text above the input field is now hidden while editing, so only the input value is visible.
|
||||
@@ -370,9 +370,11 @@ export const QuestionDock: Component<{ request: QuestionRequest }> = (props) =>
|
||||
</span>
|
||||
<span data-slot="question-option-main">
|
||||
<span data-slot="option-label">{language.t("ui.messagePart.option.typeOwnAnswer")}</span>
|
||||
<span data-slot="option-description" data-placeholder={!input()}>
|
||||
{input() || language.t("ui.question.custom.placeholder")}
|
||||
</span>
|
||||
<Show when={!store.editing}>
|
||||
<span data-slot="option-description" data-placeholder={!input()}>
|
||||
{input() || language.t("ui.question.custom.placeholder")}
|
||||
</span>
|
||||
</Show>
|
||||
</span>
|
||||
</button>
|
||||
<Show when={store.editing}>
|
||||
|
||||
Reference in New Issue
Block a user