When you drop a field on anything except a droppable the hover states (displaying the pen and bin) stop working.

Steps to reproduce

  1. Create a webform.
  2. Drop two textfields into the form.
  3. Drop one of the textfields onto the other.
  4. Hover the mouse above one of the fields.

Expected result

The hover state is triggered as normal, displaying the pen and bin symbols.

Actual result

No hover state is triggered.

Cause

The only place where Drupal.form_builder.activeDragUi is unset is Drupal.form_builder.dropElement. This function is only called when the drop is accepted by the droppable.

Proposed solution

Unset Drupal.form_builder.activeDragUi in Drupal.form_builder.stopDrag.

Comments

torotil’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new439 bytes
torotil’s picture

Status: Needs review » Fixed

  • torotil committed c1d9114 on 7.x-1.x
    Issue #2270499: Reset activeDragUi when drag&drop is interrupted.
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.