Skip to content

[FIX] Edit Message when down arrow is pressed.#14369

Merged
rodrigok merged 4 commits intoRocketChat:developfrom
Kailash0311:editMessageKeydown
May 20, 2019
Merged

[FIX] Edit Message when down arrow is pressed.#14369
rodrigok merged 4 commits intoRocketChat:developfrom
Kailash0311:editMessageKeydown

Conversation

@Kailash0311
Copy link
Copy Markdown
Contributor

@Kailash0311 Kailash0311 commented May 3, 2019

Closes #14240.
Issue: editByIndex function actually sets the index property of the editing object if it is undefined, which is useful in the case of pressing up arrow but not in the case of pressing down arrow.
Resolution: Check if the message is being edited, only then allow it to be processed further.

@Kailash0311
Copy link
Copy Markdown
Contributor Author

@rodrigok please review. This is a very small change.

@tassoevan tassoevan requested review from ggazzo and tassoevan May 11, 2019 02:06
@tassoevan tassoevan added area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: bug labels May 11, 2019
@tassoevan tassoevan added this to the 1.1.0 milestone May 11, 2019
@tassoevan
Copy link
Copy Markdown
Member

I've found some other issues, like some messages been skipped. I removed the index property in favor of traversing the DOM tree.

@tassoevan tassoevan modified the milestones: 1.1.0, 1.0.4 May 11, 2019
@tassoevan tassoevan modified the milestones: 1.0.4, 1.1.0 May 20, 2019
@rodrigok rodrigok merged commit 4e19952 into RocketChat:develop May 20, 2019
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui/ux Related to UI/UX, frontend code, accessibility, and user interaction type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrow down is editing the last message as well and shouldn't

3 participants