Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: text input can be edited even if not yet initialized #928

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions frontend/src/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { ChangeEvent, useState, KeyboardEvent } from "react";
import { useSelector } from "react-redux";
import { Textarea } from "@nextui-org/react";
import { twMerge } from "tailwind-merge";
import React, { ChangeEvent, KeyboardEvent, useState } from "react";
import { useTranslation } from "react-i18next";
import { RootState } from "../store";
import { useSelector } from "react-redux";
import { twMerge } from "tailwind-merge";
import useInputComposition from "../hooks/useInputComposition";
import { sendChatMessage } from "../services/chatService";
import { I18nKey } from "../i18n/declaration";
import { sendChatMessage } from "../services/chatService";
import { RootState } from "../store";

function Input() {
const { t } = useTranslation();
Expand Down Expand Up @@ -44,7 +44,6 @@ function Input() {
return (
<div className="w-full relative text-base">
<Textarea
disabled={!initialized}
className="py-4 px-4"
classNames={{
input: "pr-16 py-2",
Expand Down