Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: input group text pass error
Scott Wilson002be1eaeb09
diff --git a/frontend/src/components/v3/generic/InputGroup/InputGroup.stories.tsx b/frontend/src/components/v3/generic/InputGroup/InputGroup.stories.tsxindex 7c61c9323b..9f0fcee20d 100644--- a/frontend/src/components/v3/generic/InputGroup/InputGroup.stories.tsx+++ b/frontend/src/components/v3/generic/InputGroup/InputGroup.stories.tsx@@ -276,6 +276,33 @@ export const WithError: Story = {)};+export const WithErrorTextArea: Story = {+ name: "State: Error (TextArea)",+ decorators: [+ (Story) => (+ <div className="w-96">+ <Story />+ </div>+ )+ ],+ parameters: {+ docs: {+ description: {+ story:+ "`InputGroupTextArea` carries the same `isError` API as `InputGroupInput` — flip it on and the danger border + ring spans the whole group, including any `block-end` toolbar. Use this when a `TextArea` plus its addons should read as a single invalid field."+ }+ }+ },+ render: () => (+ <InputGroup>+ <InputGroupTextArea rows={3} defaultValue="no" isError />+ <InputGroupAddon align="block-end">+ <InputGroupText>Add at least 20 characters of context.</InputGroupText>+ </InputGroupAddon>+ </InputGroup>+ )+};+export const SearchWithClear: Story = {name: "Example: Search With Clear",render: function SearchWithClearRender() {@@ -384,7 +411,7 @@ export const TextAreaWithCharCounter: Story = {placeholder="What's on your mind?"value={value}onChange={(e) => setValue(e.target.value)}- aria-invalid={isError}+ isError={isError}/><InputGroupAddon align="block-end"><InputGroupText>diff --git a/frontend/src/components/v3/generic/InputGroup/InputGroup.tsx b/frontend/src/components/v3/generic/InputGroup/InputGroup.tsxindex 29b60a5cee..f9314ad6b0 100644--- a/frontend/src/components/v3/generic/InputGroup/InputGroup.tsx+++ b/frontend/src/components/v3/generic/InputGroup/InputGroup.tsx@@ -139,21 +139,22 @@ const InputGroupInput = React.forwardRef<HTMLInputElement, React.ComponentProps<InputGroupInput.displayName = "InputGroupInput";-const InputGroupTextArea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<"textarea">>(- ({ className, ...props }, ref) => {- return (- <TextArea- ref={ref}- data-slot="input-group-control"- className={cn(- "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",- className- )}- {...props}- />- );- }-);+const InputGroupTextArea = React.forwardRef<+ HTMLTextAreaElement,+ React.ComponentProps<typeof TextArea>+>(({ className, ...props }, ref) => {+ return (+ <TextArea+ ref={ref}+ data-slot="input-group-control"+ className={cn(+ "flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",+ className+ )}+ {...props}+ />+ );+});InputGroupTextArea.displayName = "InputGroupTextArea";