@tagplus/components 4.9.1 → 4.9.2

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.9.1",
11
+ "version": "4.9.2",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -485,6 +485,8 @@ export default {
485
485
  getOption (val) {
486
486
  let value = ''
487
487
  let initialLabel = false
488
+ this.modifiedLabel = false
489
+
488
490
  if (typeof this.value === 'boolean') {
489
491
  value = ''
490
492
  } else if (Array.isArray(val)) {
@@ -538,12 +540,10 @@ export default {
538
540
 
539
541
  if (option) return option
540
542
 
541
- const possuiValor = !isObject && !isNull && !isUndefined
542
- const label = value
543
-
543
+ const label = !isObject && !isNull && !isUndefined ? value : ''
544
544
  const newOption = {
545
545
  value,
546
- currentLabel: possuiValor ? this.modifiedLabel || label : ''
546
+ currentLabel: this.modifiedLabel || label
547
547
  }
548
548
 
549
549
  if (this.multiple) {