Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
disable autocorrect on input
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiya1155 committed Dec 5, 2023
1 parent 798e1aa commit ec86eca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const InputCore = ({
nodeViews={nodeViews}
dispatchTransaction={dispatchTransaction}
>
<div ref={setMount} />
<div ref={setMount} autoCorrect="off" />
{renderNodeViews()}
</ProseMirror>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Props = {

const UserParsedQuery = ({ textQuery, parsedQuery }: Props) => {
return (
<div className="">
<span className="">
{parsedQuery
? parsedQuery.map((p, i) =>
p.type === ParsedQueryTypeEnum.TEXT ? (
Expand All @@ -25,7 +25,7 @@ const UserParsedQuery = ({ textQuery, parsedQuery }: Props) => {
) : null,
)
: textQuery}
</div>
</span>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ConversationMessage = ({
<p className="body-base-b text-label-title select-none">
{author === ChatMessageAuthor.User ? <Trans>You</Trans> : 'bloop'}
</p>
<p className="text-label-title body-base code-studio-md break-word overflow-auto">
<div className="text-label-title body-base code-studio-md break-word overflow-auto">
{author === ChatMessageAuthor.Server ? (
<MarkdownWithCode
markdown={text!}
Expand All @@ -67,7 +67,7 @@ const ConversationMessage = ({
) : (
<UserParsedQuery textQuery={text!} parsedQuery={parsedQuery} />
)}
</p>
</div>
</div>
</div>
);
Expand Down

0 comments on commit ec86eca

Please sign in to comment.