I am trying to use ngx-chips for tag based dropdown. Below is the code that I am using:
<tag-input [onlyFromAutocomplete]="true" formControlName="data">
<tag-input-dropdown [identifyBy]="'data'" [showDropdownIfEmpty]="true" [autocompleteItems]="dataObject" [appendToBody]="false"></tag-input-dropdown>
</tag-input>
I am using the above code in bootstrap model. But when I tried to close the dropdown list clicking any where on model, it is not closing.
So, I tried to add [appendToBody]="false"
and it fixed the issue but now the position of dropdown got disturb.
Please let me know possible solution for it.
MAnnas answer helps, because the dropdownmenu wont open on entering keywords with the keyboard, but if you happen to click with the mouse and still open it, there is this:
add
[appendToBody] = "false"
to tag-input-dropdown and then add following CSS in global styles.css:Credit goes to this Github issue