Closed (fixed)
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2017 at 23:29 UTC
Updated:
28 Aug 2017 at 08:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
luksakComment #3
luksakComment #4
miro_dietikerNever happened while we tested. But i also didn't test with FF.
Plz provide more info how to reproduce.
We might raise prio if reproducible.
Comment #5
luksakThis was also when using 1.6.0. Let's close this for now.
Comment #6
luksakI was able to reproduce this now. It happens when reordering on the top level with nested paragraphs.
updateNestedPath() calls itself recursively, but passes the arguments in the wrong order.
This patch solves the issue for me. It is Only tested in Firefox so far.
Comment #7
miro_dietikerIt seems the variable names are pretty disconnected from what they are about.
From reading the code, i have a hard time to understand what needs to be wired with what.
I put this back for work, to deliver something that is better readable for commit.
If this is broken for children, i wonder why nested things work in Chrome at all?
Comment #8
luksakUhm... tried something. Better now?
We also have a very weird mix between jQuery code and plain JS here... What should we go for? But that's a separate issue.
Comment #9
luksakComment #10
pivica commentedDamn it, didn't saw this, duplicate issue with similar patch on https://www.drupal.org/node/2901862.
Comment #11
miro_dietikerCommitted, thx.
Any follow-up for this jQuery / ES thing?
Comment #13
pivica commented> Any follow-up for this jQuery / ES thing?
I think general idea in D8 is to use native Javascript code as much as possible because API is now much better than for D7 and before - so we should use clean JS when possible and jQuery only when needed. But this is a bit bigger issue because we should check all our custom JS code and also not very important for now - jQuery is shipped with D8 anyway.
Not sure should we create some follow up for now or just try to write more native JS in future and slowly start converting code?