Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/formidable_admin.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions js/src/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -5183,6 +5183,19 @@ window.frmAdminBuildJS = function() {
return;
}

// A row's own ul.frm_sorting is nested inside the outer form-wide one (and, for a
// Section, inside that too), so this delegated handler runs once per matching
// ancestor for a single click; without this guard the outer ul's run re-toggles
// the same (by then already-mutated) hover target and undoes it. `e` is the same
// jQuery event object across every delegated invocation of this one click, so a
// property set here survives to the next. Not e.stopPropagation() — that would
// also block the unrelated document-level "close open field dropdown" click
// handler this same click still needs to reach.
if ( e.frmFieldGroupClickHandled ) {
return;
}
e.frmFieldGroupClickHandled = true;

const ctrlOrCmdKeyIsDown = e.ctrlKey || e.metaKey;
const shiftKeyIsDown = e.shiftKey;
const groupIsActive = hoverTarget.classList.contains( 'frm-selected-field-group' );
Expand Down
Loading