Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #2
thronedigital CreditAttribution: thronedigital commentedComment #3
thronedigital CreditAttribution: thronedigital commenteda
Comment #4
LaurensV CreditAttribution: LaurensV commentedI'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.
Comment #5
LaurensV CreditAttribution: LaurensV commentedComment #6
mayurjadhav CreditAttribution: mayurjadhav at Blisstering Solutions commentedI'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.
Comment #7
chucksimply CreditAttribution: chucksimply commentedExact same issue here - any updates?
Comment #8
darvanenerror: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.
Comment #9
PunamShelkeI'm having the same problem..
anyone found any solutions?
Thanks
Comment #10
DanieleN CreditAttribution: DanieleN commentedCurrent 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)
Comment #11
Syntapse CreditAttribution: Syntapse as a volunteer commentedstill 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?
Comment #12
adamtong CreditAttribution: adamtong commentedi have the same problem....any solution?
Comment #13
qzmenkoAt the moment, an attempt is being made to solve the problem in another issue #2896916: Ajax not working when using non-default view mode.