Needs review
Project:
Quick Edit
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2016 at 15:07 UTC
Updated:
28 Jan 2022 at 11:17 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersIt's intentional that you cannot edit multiple instances at the same time. It'd be too overwhelming. We'd have to manage two of the floating toolbars, and we can't position both well.
That being said, I think it is a bug that you can't go from quick editing one thing to another: that should not cause errors to be logged to the console.
Comment #3
wim leersComment #4
droplet commentedUpdated IS.
Yes. this makes senses. It just needed to close/reset current quickedit toolbar instance and start a new toolbar correctly
Comment #5
wim leersThanks, much better title :)
Comment #6
wim leersAlthough that was not quite correct yet. I think this is what you were going for.
Comment #12
vitalym commentedI think it would be good to have exact JS error messages mentioned, so people could find this issue easier:
This is from D9
This is from D8
and
Comment #13
vitalym commentedWe are using a lot quickedit in such scenarios with paragraphs and paragraphs_frontend_ui module, so here is a patch that makes all those js errors gone with no harm to the existing functionality.
Right, and this is not needed. The idea is to have entity based toolbar and its fence instead of global ones by making container ids unique.
Comment #15
vitalym commentedAdjusted existing tests to respect introduced changes and not fail. Basically css selectors were changed as follows:
#quickedit-entity-toolbar-> .quickedit-toolbar-containerComment #17
vitalym commentedOops, it seems to be that test failed due to this one Random failures building media library form after uploading image (WidgetUpdloadTest)
Comment #18
vitalym commentedHere is an alternative fix that only deals with the toolbar's fence which might be missing in this case. This fix does not bring model changes anything and does not require tests to be adjusted.
Comment #19
vitalym commentedComment #20
BalajiDS commentedPatch #18 works fine in Drupal- 8.8.6
Comment #24
spokjeDue to Quickedit being moved out of Drupal Core and into a Contrib Module, moving this issue to the Contrib Module queue.