-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Solved: Query Bar Overflow with Long Text Input #1025
base: main
Are you sure you want to change the base?
Conversation
@sarthaklaptop is attempting to deploy a commit to the Arc53 Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -33,6 +33,22 @@ export default function Conversation() { | |||
const [lastQueryReturnedErr, setLastQueryReturnedErr] = useState(false); | |||
const { t } = useTranslation(); | |||
|
|||
const [inputValue, setInputValue] = useState(''); | |||
|
|||
const handleInput = (e: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please try to avoid type any
as much as possible
id="inputbox" | ||
ref={inputRef} | ||
tabIndex={1} | ||
placeholder="Type your question here" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be placeholder={t('inputPlaceholder')}
for translation
@@ -33,6 +33,22 @@ export default function Conversation() { | |||
const [lastQueryReturnedErr, setLastQueryReturnedErr] = useState(false); | |||
const { t } = useTranslation(); | |||
|
|||
const [inputValue, setInputValue] = useState(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this state needed if it's not being used?
Hello @siiddhantt made all the changes you mentioned please review !!! |
hi @sarthaklaptop you don't need to make changes to the lint rules |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Query-bar-overflow-issue solved
Before
After
Why was this change needed? (You can also link to an open issue here)
While typing long sentences the last typed word OR while pasting the text the last sentences were not visible.
Other information: