Skip to content

Commit

Permalink
Fix: remove contentEditable instead of =false
Browse files Browse the repository at this point in the history
  • Loading branch information
lamylio committed Feb 5, 2025
1 parent 65720fd commit 0cf1659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/chat/MessageComposer/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ const Input = forwardRef<InputMethods, Props>(
id={id}
autoFocus={autoFocus}
ref={contentEditableRef}
contentEditable={!disabled}
{...(!disabled && { contentEditable: true })}
data-placeholder={disabled ? '' : placeholder}
className={cn(
'min-h-10 max-h-[250px] overflow-y-auto w-full focus:outline-none focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0 empty:before:content-[attr(data-placeholder)] empty:before:text-muted-foreground',
Expand Down

0 comments on commit 0cf1659

Please sign in to comment.