PLEASE MAKE SURE THAT:
I'm submitting a ... (check one with "x")
[ x] bug report => search github for a similar issue or PR before submitting
[ ] support request/question
Notice: feature requests will be ignored, submit a PR if you'd like
Current behavior
My code is composed by:
a high-level component called "kg-bultos.component"
a low-level component called 'mytag-input' which embeds your 'tag-input' component directly.
My kg-bultos.component.HTML is:
<app-mytag-input
[setAllowDupes]="true"
[mySecondaryPlaceholder]="'Ejs.: 56.6 o 56,6'"
[isEditable]="true"
[textoRestriccion]="'Puede usar la \',\' o el \'.\' para los decimales. '"
[isKGBultos]="true"
[numBultos]="pesoBultos"
[totalKilos]="'Total kilos'"
[sumaPeso]="pesajeTotal"
[pesoMedio]="'Peso medio'"
[pesoMaximo]="maximoPeso"
[pesoMaximoStr]="'Peso m谩ximo'"
[miTabIndex]="0"
[isExceedWeight]="pesajeExcedido"
(nuevoPeso)="calcularPesaje($event)">
</app-mytag-input>
My mytag-input.component.HTML is:
<tag-input [allowDupes]="setAllowDupes"
[placeholder]="''"
[secondaryPlaceholder]="mySecondaryPlaceholder"
[editable]='isEditable'
theme='bootstrap'
(onAdd)="textChange($event)" -> I changed 'onAdd' by 'onAdding' but this error remains.
[tabIndex]="miTabIndex"
[errorMessages]="errorMessages"
[validators]="validators">
</tag-input>
When I insert a tag, this is showed twice
and at the moment, this error is showed:
Expected behavior
Don't show twice the inputted value and don't show that error.
Minimal reproduction of the problem with instructions (if applicable)
What do you use to build your app?. Please specify the version
The latest version of angular-cli.
Angular version:
5
ngx-chips version:
The latest version of this component at the writing.
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
all
You don't have an ngmodel or a form control
Most helpful comment
You don't have an ngmodel or a form control