Skip to content

fix: Text area only shows the last line of the message for very long texts #31252 #31257 - #31262

Merged
kodiakhq[bot] merged 5 commits into
RocketChat:developfrom
Sayan4444:textarea-bug
Jan 2, 2024
Merged

fix: Text area only shows the last line of the message for very long texts #31252 #31257#31262
kodiakhq[bot] merged 5 commits into
RocketChat:developfrom
Sayan4444:textarea-bug

Conversation

@Sayan4444

@Sayan4444 Sayan4444 commented Dec 18, 2023

Copy link
Copy Markdown
Contributor

Proposed changes (including videos or screenshots)

Video AFTER the fix made by me (My proposed changes):-
https://github.com/RocketChat/Rocket.Chat/assets/112304873/e2576610-c5d5-4d36-9d73-411512e2b3b1

Before when we wrote some long text in the textarea of the chat directory and go to someother page and comeback, we used to get a glitched textarea where we CANT EVEN SCROLL through the bigger texts and the textarea appears in ONE LINE.

Video BEFORE the fix made by me (Issue video):-
https://github.com/RocketChat/Rocket.Chat/assets/112304873/41a51600-6145-4fcf-8957-d4f6e9bfa05d

Now after the fix, when we leave the page where we had the big text and comeback, we get the SAME SIZE OF THE TEXTBOX we got when we initailly left it and can SEAMLESSLY SCROLL. It doesnot appear glitchy.

Issue(s)

This should close issues :-
fix #31252
fix #31257
fix #30965

Steps to test or reproduce

  1. Go to a channel
  2. Write some huge multiline text
  3. Go to a separate channel/anywhere even refresh will work and comeback

Further comments

@Sayan4444
Sayan4444 requested a review from a team as a code owner December 18, 2023 04:54
@changeset-bot

changeset-bot Bot commented Dec 18, 2023

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f53b6cf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@CLAassistant

CLAassistant commented Dec 18, 2023

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@hugocostadev

Copy link
Copy Markdown
Contributor

Thanks for your contribution, I'm going to review this PR


Questions? Help needed? Feature Requests?

@codecov

codecov Bot commented Dec 22, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9d6cf47) 49.36% compared to head (f53b6cf) 49.33%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31262      +/-   ##
===========================================
- Coverage    49.36%   49.33%   -0.04%     
===========================================
  Files         3310     3308       -2     
  Lines        81302    81299       -3     
  Branches     16651    16650       -1     
===========================================
- Hits         40138    40105      -33     
- Misses       36470    36498      +28     
- Partials      4694     4696       +2     
Flag Coverage Δ
e2e 52.49% <100.00%> (-0.10%) ⬇️
e2e-api 40.65% <ø> (-0.02%) ⬇️
unit 76.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@Sayan4444

Copy link
Copy Markdown
Contributor Author

Is it still on check? or did I do something wrong? @hugocostadev

@hugocostadev hugocostadev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me!

Thanks a lot for your contribution man! 🚀

@dionisio-bot dionisio-bot Bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Jan 2, 2024
@kodiakhq
kodiakhq Bot merged commit 92a8de7 into RocketChat:develop Jan 2, 2024
@Sayan4444
Sayan4444 deleted the textarea-bug branch January 2, 2024 15:04
gabriellsh added a commit that referenced this pull request Jan 2, 2024
…cacheStreams

* 'develop' of github.com:RocketChat/Rocket.Chat:
  fix: Text area only shows the last line of the message for very long texts #31252 #31257 (#31262)
@dougfabris dougfabris added this to the 6.6 milestone Jan 3, 2024
gabriellsh added a commit that referenced this pull request Jan 3, 2024
…hideUi

* 'develop' of github.com:RocketChat/Rocket.Chat: (112 commits)
  chore: update yarn.lock
  chore: Replace `FramedIcon` in favor of fuselage component (#31356)
  chore: fix dep version
  Release 6.5.2
  fix: wrong value used for workspace registration
  ci: update release PR description with change log
  fix: inquiries being limited to 50 items (#31267)
  fix: close image gallery on backdrop click (#31344)
  fix: No error message when uploading a file that is not allowed (#31346)
  fix: Text area only shows the last line of the message for very long texts #31252 #31257 (#31262)
  chore: adding new streamer event for imported messages (#31063)
  chore: adapt read receipts feature to work without oplog on msgs (#30996)
  chore: remove Messages model dependency of Rooms model (#31272)
  chore: `Card` normalization (#31335)
  refactor: unify useStream and useSingleStream (#31326)
  chore: add new msg stream for reported msgs (#31087)
  Bump 6.5.2
  feat: Highlight words in thread messages (#31281)
  fix: Show only departments that are allowed on registration page on livechat widget (#31302)
  fix: Fallback forward department not working as expected on chat forwarding (#31296)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The problem of the chat text box with long text, Multi-line mode is lost Text area only shows the last line of the message Text input bug

4 participants