Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: remove animated placeholder when we have messages

Brad Barbin29d35bea4337
diff --git a/apps/erp/app/components/Chat/ChatInput.tsx b/apps/erp/app/components/Chat/ChatInput.tsx
index 1a90f378d1..ce5cd0df43 100644
--- a/apps/erp/app/components/Chat/ChatInput.tsx
+++ b/apps/erp/app/components/Chat/ChatInput.tsx
@@ -75,7 +75,10 @@ export const ChatInput = forwardRef<RecordButtonRef, ChatInputProps>(
// Animated placeholder effect
useEffect(() => {
- if (isWebSearch || isRecording) return;
+ if (isWebSearch || isRecording || hasMessages) {
+ setCurrentPlaceholder("Ask anything");
+ return;
+ }
const currentText = placeholderTexts[currentTextIndex];
@@ -108,6 +111,7 @@ export const ChatInput = forwardRef<RecordButtonRef, ChatInputProps>(
isTyping,
isWebSearch,
isRecording,
+ hasMessages,
]);
const handleSubmit = (message: ChatInputMessage) => {