|
@@ -254,7 +254,7 @@ export function PromptTextarea({
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
- <div className="relative w-full">
|
|
|
|
|
|
|
+ <div className="relative w-full pointer-events-none">
|
|
|
<textarea
|
|
<textarea
|
|
|
ref={textareaRef}
|
|
ref={textareaRef}
|
|
|
value={value}
|
|
value={value}
|
|
@@ -267,7 +267,7 @@ export function PromptTextarea({
|
|
|
placeholder={placeholder}
|
|
placeholder={placeholder}
|
|
|
rows={rows}
|
|
rows={rows}
|
|
|
className={cn(
|
|
className={cn(
|
|
|
- 'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono resize-none relative',
|
|
|
|
|
|
|
+ 'flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 font-mono resize-none relative pointer-events-auto',
|
|
|
className
|
|
className
|
|
|
)}
|
|
)}
|
|
|
style={{ background: 'transparent' }}
|
|
style={{ background: 'transparent' }}
|
|
@@ -283,7 +283,7 @@ export function PromptTextarea({
|
|
|
{showSuggestions && suggestions.length > 0 && (
|
|
{showSuggestions && suggestions.length > 0 && (
|
|
|
<div
|
|
<div
|
|
|
ref={suggestionsRef}
|
|
ref={suggestionsRef}
|
|
|
- className="absolute mt-1 w-full max-h-60 overflow-auto rounded-md border border-border bg-popover shadow-lg z-30"
|
|
|
|
|
|
|
+ className="absolute mt-1 w-full max-h-60 overflow-auto rounded-md border border-border bg-popover shadow-lg z-30 pointer-events-auto"
|
|
|
>
|
|
>
|
|
|
{suggestions.map((suggestion, index) => (
|
|
{suggestions.map((suggestion, index) => (
|
|
|
<div
|
|
<div
|