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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fng-ui-select",
3
3
  "author": "Mark Chapman <support@forms-angular.org>",
4
- "version": "0.12.0-beta.335",
4
+ "version": "0.12.0-beta.336",
5
5
  "description": "angular-ui-select plugin for forms-angular",
6
6
  "repository": {
7
7
  "type": "git",
@@ -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>';