| | |
| | | el.dataset.index = index; |
| | | |
| | | manyRefs.inputs?.forEach(input => { |
| | | window.prefixInput(input, `${data.repeater.dataset.field}:${index}:`, el); |
| | | window.prefixInput(input, `${data.repeater.dataset.field}:${index}:`, el, false, true); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | el.dataset.index = index; |
| | | manyRefs.inputs?.forEach(input => { |
| | | let wrapper = input.closest('.tag-item'); |
| | | window.prefixInput(input, `${data.fieldName}:${index}:`, wrapper) |
| | | window.prefixInput(input, `${data.fieldName}:${index}:`, wrapper, false, true) |
| | | }); |
| | | |
| | | if (refs.label) { |
| | |
| | | window.prefixInput( |
| | | input, |
| | | `${fieldName}:${index}:`, |
| | | item // Pass the item as wrapper for label lookup |
| | | item, |
| | | false, |
| | | true |
| | | ); |
| | | }); |
| | | }); |