Needs work
Project:
Webform Alternate UI
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2011 at 06:59 UTC
Updated:
22 Mar 2011 at 00:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
JacobSingh commentedComment #2
james.elliott commentedThis bit makes sense
But I'm quite sure that the other parts where you've added context were specifically designed not to have it. I think it is because the drag and drop interactions specifically need to be reset when a new form element is added.
Comment #3
effulgentsia commentedEven this part isn't quite right, because the behavior is intended to run for an AJAX returned context that's *inside* #form-builder, and this if statement prevents that.
The behavior code is fragile, however, and can benefit from some cleanup to use context and .once() properly, so leaving this issue open. In the meantime, #1100852: JS error when behavior runs on context unrelated to form builder contains one small addition to be more robust for the use-case that started this issue.