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

Mentioned user not clickable after posting a comment #4555

Closed
nickvergessen opened this issue Apr 27, 2017 · 3 comments
Closed

Mentioned user not clickable after posting a comment #4555

nickvergessen opened this issue Apr 27, 2017 · 3 comments
Assignees

Comments

@nickvergessen
Copy link
Member

Page needs to be reloaded before this is possible.

@jancborchardt
Copy link
Member

For me it wasn’t even possible for existing comments somehow … :/

@georgehrke
Copy link
Member

For me it wasn’t even possible for existing comments somehow … :/

Can you check if there is any js error and if the contacts menu popover is properly added to the DOM?

danxuliu added a commit that referenced this issue May 8, 2017
The contactsMenu plugin was called on avatar elements from
_postRenderItem, which is called when a new comment is added to the
collection. Due to this contactsMenu was not called when messages were
edited; when a new comment is posted _postRenderItem is called, but at
that time the "mentions" attribute is not filled yet, so "@username" is
not replaced by avatars in the message and thus contactsMenu has no
avatars to be called on.

Calling contactsMenu was moved to a new method, _postRenderMessage,
which is called from _postRenderItem and from the success callback when
fetching the model in _onSubmitSuccess (which replaces "@username" by
avatars in the message after posting or editing a comment).

Fixes #4555

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@MorrisJobke
Copy link
Member

Fix is in #4746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants