Title: Fix Input Box to Revert to Original Height on Submission in HomePage
Description:
This pull request addresses an issue where the input box (textarea) on the Home Page does not revert to its original height after submitting multiline text. This behavior leads to a poor user experience, as the input box remains expanded even when it is empty.
Goals:
Enhance User Experience: Ensure the input box reverts to its original height after text is submitted, maintaining a clean and consistent interface.
Maintain Functional Consistency: Align the behavior of the input box with user expectations, where the input field resets to its default state post-submission.
Improve Code Maintainability: Simplify the input box height management to prevent similar issues in future development.
Changes Made:
Updated the submit Function:
Added logic to reset the height of the textarea to "50px" after clearing the user input.
Ensured that this logic is executed each time the user submits a message.
Title: Fix Input Box to Revert to Original Height on Submission in HomePage
Description:
This pull request addresses an issue where the input box (textarea) on the Home Page does not revert to its original height after submitting multiline text. This behavior leads to a poor user experience, as the input box remains expanded even when it is empty.
Goals:
Changes Made:
Updated the
submit
Function:Code Snippet Before Changes:
Code Snippet After Changes:
Linked Issue:
This pull request addresses [Issue #32 ] where the input box height does not revert to its original state after text submission.
Testing and Validation:
Manual Testing:
Notes:
Please review the changes and provide feedback or approval for merging this fix into the main branch. Thank you!