Skip to content

Commit be8bd91

Browse files
committed
Update prompt-input.tsx
1 parent eca525a commit be8bd91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/elements/src/prompt-input.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,9 @@ export const PromptInputTextarea = ({
785785

786786
// Check if the submit button is disabled before submitting
787787
const form = e.currentTarget.form;
788-
const submitButton = form?.querySelector('button[type="submit"]') as HTMLButtonElement | null;
788+
const submitButton = form?.querySelector(
789+
'button[type="submit"]'
790+
) as HTMLButtonElement | null;
789791
if (submitButton?.disabled) {
790792
return;
791793
}
@@ -1176,7 +1178,7 @@ export const PromptInputSelectTrigger = ({
11761178
<SelectTrigger
11771179
className={cn(
11781180
"border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors",
1179-
'hover:bg-accent hover:text-foreground [&[aria-expanded="true"]]:bg-accent [&[aria-expanded="true"]]:text-foreground',
1181+
"hover:bg-accent hover:text-foreground aria-expanded:bg-accent aria-expanded:text-foreground",
11801182
className
11811183
)}
11821184
{...props}

0 commit comments

Comments
 (0)