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 issues with comments #2521

Merged
merged 2 commits into from
May 12, 2022
Merged

Fix issues with comments #2521

merged 2 commits into from
May 12, 2022

Conversation

eemeli
Copy link
Member

@eemeli eemeli commented May 9, 2022

Built on #2520, will be rebased once that's merged; only the last two commits are actually meant for this PR.

Fixes #2519 by using a key prop on the Slate component.

Reduces prop-passing by adding a useAddCommentAndRefersh hook and refactoring the component structure around AddComment and de-generalising CommentsList so that TeamComments can do its own thing with pinned comments.

I also noticed that while the comment mention popup does get hidden if it's scrolled out of sight, it's not re-shown if scrolled back. That's also fixed here.

@eemeli eemeli merged commit 7417991 into mozilla:master May 12, 2022
@eemeli eemeli deleted the fix-comments branch May 12, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After sending a comment, the text remains in the input field
2 participants