@tagplus/components 2.0.20 → 2.0.23
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/dist/tp.common.js +1 -1
- package/dist/tp.common.js.map +1 -1
- package/dist/tp.css +1 -1
- package/dist/tp.umd.js +1 -1
- package/dist/tp.umd.js.map +1 -1
- package/dist/tp.umd.min.js +1 -1
- package/dist/tp.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Multisuggest/Multisuggest.vue +6 -2
package/package.json
CHANGED
|
@@ -444,10 +444,13 @@ export default {
|
|
|
444
444
|
}
|
|
445
445
|
})
|
|
446
446
|
} else if (newValue && Object.keys(oldValue).length) {
|
|
447
|
-
|
|
447
|
+
let itemApagado = []
|
|
448
|
+
if (Array.isArray(oldValue)) {
|
|
449
|
+
itemApagado = oldValue.filter(x => !newValue?.includes(x))
|
|
450
|
+
}
|
|
448
451
|
|
|
449
452
|
this.selectedLabelsArray.forEach((item, index) => {
|
|
450
|
-
if (item.id === itemApagado[0] || item
|
|
453
|
+
if (item.id === itemApagado[0] || item?.value === itemApagado[0] || item?.ncm === itemApagado[0]) {
|
|
451
454
|
this.selectedLabelsArray.splice(index, 1)
|
|
452
455
|
}
|
|
453
456
|
})
|
|
@@ -659,6 +662,7 @@ export default {
|
|
|
659
662
|
},
|
|
660
663
|
|
|
661
664
|
handleClose () {
|
|
665
|
+
this.selectedLabelsArray = []
|
|
662
666
|
this.visible && this.$emit('closeSelect')
|
|
663
667
|
this.visible = false
|
|
664
668
|
// Limpa busca quando fecha
|