@tagplus/components 0.2.95 → 0.2.96

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
@@ -7,7 +7,7 @@
7
7
  "email": "bruno@tagplus.com.br"
8
8
  }
9
9
  ],
10
- "version": "0.2.95",
10
+ "version": "0.2.96",
11
11
  "main": "./dist/tp.common.js",
12
12
  "directories": {
13
13
  "lib": "src/lib"
@@ -459,8 +459,10 @@ export default {
459
459
 
460
460
  this.value.forEach((item,key) => {
461
461
  if (item[this.valueKey]) {
462
- this.selectedLabelsArray.push(item)
463
462
  this.value[key] = item[this.valueKey]
463
+ if(item[this.labelKey]) {
464
+ this.selectedLabelsArray.push(item)
465
+ }
464
466
  }
465
467
  })
466
468
 
@@ -523,7 +525,7 @@ export default {
523
525
  else if (val && typeof val === 'object') {
524
526
  // Se val for Object converte para outro tipo
525
527
  if (!val[this.valueKey]) {
526
- throw new TypeError('Autosuggest this.value doesn\'t have a valueKey \'' + this.valueKey + '\' key')
528
+ throw new TypeError('Multisuggest option doesn\'t have a valueKey \'' + this.valueKey + '\' key')
527
529
  } else {
528
530
  // Se mandou a label no objeto value
529
531
  if (val[this.labelKey]) {