Page not reloading when clicking save on comment, or comment reply.

Receiving error when ajax comments are used in view as field.

error:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Use Case: Using Drupal 8 Groups module. Attempting to do something similar to a facebook fall on the group content ( Content Type ). So in the view a user can read the new post (node) or comment on it, without having to go into the node.

Comments

thronedigital created an issue. See original summary.

thronedigital’s picture

Issue summary: View changes
thronedigital’s picture

a

LaurensV’s picture

I'm having the same problem.. The form works, but you don't see your comment until you manually refresh the page when using comments as a field in views.

LaurensV’s picture

Title: Ajax Comments In View Issue » Ajax Comments In Views Issue
Component: User interface » Views integration
Category: Support request » Bug report
mayurjadhav’s picture

Priority: Normal » Major

I'm having the same problem.. we won't be able to see our comment until we manually refresh the page when using comments as a field in views.

chucksimply’s picture

Exact same issue here - any updates?

darvanen’s picture

error:Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

This error shows whenever Drupal makes any kind of AJAX call, it is not related to the problem you're experiencing. I suspect is the same cause as #2826567: Form alter breaks when the comment field isn't in the "full" view mode., which is not going to be a quick thing to fix.

PunamShelke’s picture

I'm having the same problem..
anyone found any solutions?

Thanks

DanieleN’s picture

Current same issue when i render my custom Entity and attached comments in a new viewmode.
WIth Default Viewmode of my custom entity -> it works fine. (Classes are not different)

Syntapse’s picture

still facing same problems with ajax_comments in views in drupal 8.6.

Notice the last comment was 7 months ago. Is the module still maintained?

adamtong’s picture

i have the same problem....any solution?

qzmenko’s picture

Status: Active » Closed (duplicate)

At the moment, an attempt is being made to solve the problem in another issue #2896916: Ajax not working when using non-default view mode.