Needs review
Project:
Paragraphs
Version:
8.x-1.11
Component:
Experimental Widget
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2020 at 14:07 UTC
Updated:
23 Apr 2026 at 01:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirNever experienced that, need exact steps on how to reproduce this
Comment #3
sistocarta commentedI think the easiest way to show this issue ist in a Video.
Here how we get the Issue, that the paragraphs, after opening some, is unpublished.
Comment #4
sistocarta commentedComment #5
berdirAh, I see. I think there's an existing issue about the multiple clicks think, but that's just simply not supported. Drupal ajax doesn't support multiple parallel actions, you're guaranteed to get race conditions. The only thing I can think of would be to prevent doing that clientside, so not allow to click any further things as long as an ajax operation is pending.
Comment #6
berdirComment #7
cola commented@berdir, did you have an example how to prevent "parallel actions" (clicks)?
Comment #8
er.garg.karanI have fixed this via a custom code. Basically I am adding an overlay (the old css trick) that does not allow further action until current ajax request finishes.
// mymodule.module file
// mymodule.libraries.yml file
// js/ajax.js file
// css/ajax.css file
.ajax-progress-overlay{position:fixed;z-index:1000;top:0;width:100%;height:100%;background:rgba(0,0,0,.4)}Comment #9
bdunphy commentedI have been able to reproduce this consistently on sites. It is a timing issue where rapid fire clicks can cause the issue to trigger. For us, we have users who have lost content on a node from this bug. Paragraphs dissapear and they have to reload the page and all previous edits lost. I'm testing some code now in the hopes this will resolve the issue. I'll post once testing is completed. I should note that I'm testing against 8.x-1.16 and will look to upgrade to the latest release and then test again. This bug does exist and causes issues for users.
Comment #10
bdunphy commentedComment #12
bdunphy commentedI neglected to change the status in my work here. I have opened a Merge Request as seen in #11. This needs review and testing. I have tested against multiple releases of Paragraphs including 1.20.
Comment #13
yashaswi18 commentedComment #14
bdunphy commented@yashaswi18 - appreciate the code review. I'm testing now to ensure that the changes will not cause any issues. I'll update after testing.
Comment #15
bdunphy commentedCommitted changes as recommended.