@tagplus/components 4.7.13 → 4.7.15

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
@@ -8,7 +8,7 @@
8
8
  "email": "bruno@tagplus.com.br"
9
9
  }
10
10
  ],
11
- "version": "4.7.13",
11
+ "version": "4.7.15",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -478,6 +478,11 @@ export default {
478
478
  }
479
479
  },
480
480
 
481
+ /** Atualiza a label de algum dos elementos da listagem do altosuggest */
482
+ atualizarLabelOpcao (index, val) {
483
+ this.suggestionsList[index][this.labelKey] = val
484
+ },
485
+
481
486
  /**
482
487
  * Sobrescreve o getOption do select para mostrar o labelValue em vez do idValue
483
488
  */
@@ -524,8 +529,8 @@ export default {
524
529
  isEqual = getValueByPath(cachedOption.value, this.valueKey) === getValueByPath(value, this.valueKey)
525
530
  } else {
526
531
  isEqual = cachedOption.value === value
527
- if (initialLabel) {
528
- cachedOption.label = initialLabel
532
+ if (initialLabel && isEqual) {
533
+ this.atualizarLabelOpcao(i, initialLabel)
529
534
  }
530
535
  }
531
536