Gbuomprisco / ngx-chips

Tag Input component for Angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

click on option in tag-input-dropdown and separate chips using ENTER, gives runtime error

Warsha97 opened this issue · comments

PLEASE MAKE SURE THAT:

  • you searched similar issues online (9/10 issues in this repo are solved by googling, so please...do it)
  • you provide an online demo I can see without having to replicate your environment
  • you help me by debugging your issue, and if you can't, do go on filling out this form

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

1.when trying to add a new chip by 'Enter', it is not happening, and gives a runtime error as following=>
ReferenceError: regeneratorRuntime is not defined
at TagInputComponent.onFormSubmit

(when i specify [separatorKeyCodes] for other keys, it works. but even if i specify [separatorKeyCodes]="[13]" it produces the same outcome as above)

2.when selecting an item from tag-input-dropdown gives runtime error
ReferenceError: regeneratorRuntime is not defined
at TagInputDropdown.requestAdding

Expected behavior

1.should be able to use 'enter' to add new chip
2.dropdown selection should work.

Minimal reproduction of the problem with instructions (if applicable)

<tag-input [ngModel]="['@item']" (onAdd)="onAdded($event)">
               <tag-input-dropdown [autocompleteItems]="['iTem1', 'item2', 'item3']" [focusFirstElement]="true"
                   [showDropdownIfEmpty]="true" [dynamicUpdate]="true" [appendToBody]="false">
               </tag-input-dropdown>
           </tag-input>

What do you use to build your app?. Please specify the version
"@angular/cli": "~8.3.20",

Angular version:

"@angular/animations": "~8.2.14",
"@angular/cdk": "^8.0.1",
"@angular/common": "~8.2.14",
"@angular/compiler": "~8.2.14",
"@angular/core": "~8.2.14",
"@angular/forms": "~8.2.14",
"@angular/material": "^8.0.2",
"@angular/platform-browser": "~8.2.14",

ngx-chips version:
"ngx-chips": "^2.1.0",

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 ]

Chrome