Closed (fixed)
Project:
Field Group Complete
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Dec 2025 at 18:17 UTC
Updated:
30 Dec 2025 at 20:34 UTC
Jump to comment: Most recent
<details>, custom classes, etc.), which caused Field Group Complete to fail to attach any behavior at all.Refactor Field Group Complete’s JS and form alter to:
const DEFAULT_TRIGGER_SELECTOR = '.field-group-tabs-wrapper a[href^="#edit-group-"], ' + '.field-group-tabs-wrapper button[aria-controls^="edit-group-"]';
Split the JavaScript into:
js/field_group_complete.core.js: core logic (required detection, completeness computation, badge creation, class toggling, etc.).js/field_group_complete.js: the Drupal behavior (initialization, selector discovery, and calling into the core functions).Retain vertical/horizontal tabs support by:
.field-group-tabs-wrapper container..vertical-tabs__menu-link-content as an optional inner label wrapper when present.Remove the experimental pane ↔ tab mapping hooks and handler APIs introduced earlier, since they are no longer necessary with the universal selector approach.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
jcandan commented