fng-ui-select 0.12.0-beta.335 → 0.12.0-beta.336
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/fng-ui-select.js +4 -2
package/package.json
CHANGED
package/src/fng-ui-select.js
CHANGED
|
@@ -402,9 +402,11 @@
|
|
|
402
402
|
scope[`${uniqueId}_options`] = [];
|
|
403
403
|
if (multiControl) {
|
|
404
404
|
select += '{{$select.selected.text}}';
|
|
405
|
-
} else if (processedAttrs.options.subschema) {
|
|
406
|
-
select += '{{' + attrs.model + '.' + processedAttrs.info.name.replace(processedAttrs.options.subschemaroot, processedAttrs.options.subschemaroot + '[$index]') + '.text}}';
|
|
407
405
|
} else {
|
|
406
|
+
// buildingBlocks.modelString already addresses the field correctly at every nesting
|
|
407
|
+
// level, including inside a sub-schema array. It used to be special cased here to
|
|
408
|
+
// build an absolute "<root>[$index].<field>" path, which cannot reach a field in an
|
|
409
|
+
// array nested within a sub-schema array - $index there belongs to the inner repeat.
|
|
408
410
|
select += '{{' + buildingBlocks.modelString + '.text}}';
|
|
409
411
|
}
|
|
410
412
|
select += '</ui-select-match>';
|