@tagplus/components 1.2.8 → 1.2.11

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": "1.2.8",
11
+ "version": "1.2.11",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -475,12 +475,11 @@ export default {
475
475
 
476
476
  if (Array.isArray(this.value)) {
477
477
  this.value.forEach((item, key) => {
478
- if (item[this.valueKey]) {
479
- this.value[key] = item[this.valueKey]
480
- if (item[this.labelKey]) {
481
- this.selectedLabelsArray.push(item)
478
+ this.suggestionsList.forEach(suggestion => {
479
+ if (suggestion[this.valueKey] === item) {
480
+ this.selectedLabelsArray.push(suggestion)
482
481
  }
483
- }
482
+ })
484
483
  })
485
484
  } else if (process.env.DEBUG === 'true') {
486
485
  console.log(`'${this.$options.name}' recebeu valor em formato inválido.`)