Afform - Drag & drop fixes
authorColeman Watts <coleman@civicrm.org>
Mon, 10 May 2021 12:53:52 +0000 (08:53 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 10 May 2021 12:53:52 +0000 (08:53 -0400)
commit261a6a5dc45d142e422dda67c2f56dcb11d939b4
tree6f548ed3272b5270b4009daa1b5661fc733fde96
parent35093fbff08842016c1ef01042e225b9cb5ffec2
Afform - Drag & drop fixes

The drag-drop validation broke when af-gui-field was changed from a directive to
a component, as the jQuery was looking for the wrong markup.

Additionally, this attempts to fix a hard-to-reproduce bug where the styling
gets stuck in a "dragging" state after something has been dropped.
ext/afform/admin/ang/afGuiEditor.js
ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js