@tagplus/components 2.0.19 → 2.0.20

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": "2.0.19",
11
+ "version": "2.0.20",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -443,11 +443,11 @@ export default {
443
443
  this.selectedLabelsArray.push(item)
444
444
  }
445
445
  })
446
- } else if (newValue && Object.keys(newValue).length) {
446
+ } else if (newValue && Object.keys(oldValue).length) {
447
447
  const itemApagado = oldValue.filter(x => !newValue?.includes(x))
448
448
 
449
449
  this.selectedLabelsArray.forEach((item, index) => {
450
- if (item.id === itemApagado[0]) {
450
+ if (item.id === itemApagado[0] || item.value === itemApagado[0] || item.ncm === itemApagado[0]) {
451
451
  this.selectedLabelsArray.splice(index, 1)
452
452
  }
453
453
  })