- Issue created by @robphillips
- Merge request !152Appends all field parent deltas to tags identifier β (Open) created by robphillips
When the Tagify widget is used within a deeply nested paragraph, two or more levels deep, the identifier used for JavaScript selection conflicts with previous instances on the page. The issue is that this code does not account for multiple levels of deltas provided by the parent fields.
$tags_identifier = $items->getName();
// Concat element position to the Tagify identifier.
if (!empty($element['#field_parents'][1])) {
$tags_identifier .= '_' . $element['#field_parents'][1];
}
Active
1.2
Code