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: Pressing esc whilst editing a message closes the contextual bar #32861

Merged
merged 7 commits into from
Jul 22, 2024

Conversation

gabriellsh
Copy link
Member

@gabriellsh gabriellsh commented Jul 22, 2024

Proposed changes (including videos or screenshots)

There's 2 ways to attach an event listener to a component, using react props (onClick, onKeyDown, etc) or directly to the node (using a callbackRef or getting the element directly from the dom). Attaching events using both ways changes how event propagation works due to react's synthetic event handlers.

The issue was resolved by adding the composer keydown event using a callbackRef instead of as a prop.

Issue(s)

Steps to test or reproduce

Further comments

CORE-529

Copy link
Contributor

dionisio-bot bot commented Jul 22, 2024

Looks like this PR is ready to merge! 🎉
If you have any trouble, please check the PR guidelines

Copy link

changeset-bot bot commented Jul 22, 2024

🦋 Changeset detected

Latest commit: f6de7b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 32 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/api-client Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/ddp-client Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/models Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.55%. Comparing base (d9fdf02) to head (f6de7b9).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32861      +/-   ##
===========================================
- Coverage    55.59%   55.55%   -0.05%     
===========================================
  Files         2637     2637              
  Lines        57308    57313       +5     
  Branches     11868    11869       +1     
===========================================
- Hits         31860    31839      -21     
- Misses       22754    22767      +13     
- Partials      2694     2707      +13     
Flag Coverage Δ
e2e 54.22% <100.00%> (-0.07%) ⬇️
unit 72.35% <ø> (ø)

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

…threadEdit

* 'develop' of github.com:RocketChat/Rocket.Chat:
  feat: Improve UX from "Action Buttons" in `RoomInfo` (#32632)
  fix: Attachments not downloading on non-encrypted rooms (#32837)
@gabriellsh gabriellsh marked this pull request as ready for review July 22, 2024 18:04
@gabriellsh gabriellsh requested a review from a team as a code owner July 22, 2024 18:04
@dougfabris dougfabris added this to the 6.11 milestone Jul 22, 2024
@dougfabris dougfabris added the stat: QA assured Means it has been tested and approved by a company insider label Jul 22, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 22, 2024
@kodiakhq kodiakhq bot merged commit 3df759b into develop Jul 22, 2024
49 checks passed
@kodiakhq kodiakhq bot deleted the fix/threadEdit branch July 22, 2024 22:51
debdutdeb pushed a commit that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants