matcha-components 20.63.0 → 20.64.0
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.
|
@@ -9797,11 +9797,7 @@ class MatchaChipListComponent {
|
|
|
9797
9797
|
const selectedChangeSub = chip.selectedChange.subscribe(() => {
|
|
9798
9798
|
this._onChipSelectionChange(chip);
|
|
9799
9799
|
});
|
|
9800
|
-
|
|
9801
|
-
const removedSub = chip.removed.subscribe(() => {
|
|
9802
|
-
this._onChipRemoved(chip, index);
|
|
9803
|
-
});
|
|
9804
|
-
this._chipSubscriptions.push(selectedChangeSub, removedSub);
|
|
9800
|
+
this._chipSubscriptions.push(selectedChangeSub);
|
|
9805
9801
|
});
|
|
9806
9802
|
}
|
|
9807
9803
|
/** Limpa as subscrições dos chips */
|
|
@@ -9825,12 +9821,6 @@ class MatchaChipListComponent {
|
|
|
9825
9821
|
this._updateValue();
|
|
9826
9822
|
this.onTouched();
|
|
9827
9823
|
}
|
|
9828
|
-
/** Manipula a remoção de um chip */
|
|
9829
|
-
_onChipRemoved(chip, index) {
|
|
9830
|
-
// Emite evento de remoção para o componente pai gerenciar
|
|
9831
|
-
// O componente pai deve remover o item do array para que o *ngFor re-renderize
|
|
9832
|
-
this._updateValue();
|
|
9833
|
-
}
|
|
9834
9824
|
/** Atualiza o valor baseado nos chips selecionados */
|
|
9835
9825
|
_updateValue() {
|
|
9836
9826
|
if (this.multiple) {
|