From 3a4d17cb0d6cc2e3f355a9b5c6d34fa1584ebd2d Mon Sep 17 00:00:00 2001 From: balibabu Date: Fri, 17 Apr 2026 21:02:41 +0800 Subject: [PATCH] Fix: The placeholder in PromptEditor is obscured. (#14179) ### What problem does this PR solve? Fix: The placeholder in PromptEditor is obscured. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/package.json | 11 +++++++---- .../agent/form/components/prompt-editor/index.tsx | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/web/package.json b/web/package.json index 990664e9bf..7ccdd9ec69 100644 --- a/web/package.json +++ b/web/package.json @@ -8,15 +8,18 @@ "build": "vite build --mode production", "build-storybook": "storybook build", "dev": "vite --host", - "lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0", + "lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives", "prepare": "cd .. && husky web/.husky", "preview": "vite preview", "storybook": "storybook dev -p 6006", - "test": "jest --no-cache --coverage" + "test": "jest --no-cache --coverage", + "type-check": "tsc --noEmit" }, "lint-staged": { - "*.{js,jsx,ts,tsx,css,less,json}": [ - "prettier --write --ignore-unknown" + "*.{css,less,json}": "prettier --write --ignore-unknown", + "*.{js,jsx,ts,tsx}": [ + "prettier --write --ignore-unknown", + "eslint" ] }, "overrides": { diff --git a/web/src/pages/agent/form/components/prompt-editor/index.tsx b/web/src/pages/agent/form/components/prompt-editor/index.tsx index 3ad562a725..8216dfb9e5 100644 --- a/web/src/pages/agent/form/components/prompt-editor/index.tsx +++ b/web/src/pages/agent/form/components/prompt-editor/index.tsx @@ -184,7 +184,7 @@ export const PromptEditor = forwardRef(function PromptEditor( onChange, onBlur, placeholder, - showToolbar, + showToolbar = true, multiLine = true, enablePathQueryAutoMerge = true, extraOptions, @@ -237,10 +237,10 @@ export const PromptEditor = forwardRef(function PromptEditor( placeholder={