Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

focusFirstElement not forcus in the first item #975

Open
NguyenVanBay101097 opened this issue Oct 14, 2020 · 1 comment
Open

focusFirstElement not forcus in the first item #975

NguyenVanBay101097 opened this issue Oct 14, 2020 · 1 comment

Comments

@NguyenVanBay101097
Copy link

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")

[ ] 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

i add [focusFirstElement] = "true" but not working
Expected behavior

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version

Angular version:

angular 8,

ngx-chips version:

2.2
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 ]

@NguyenVanBay101097
Copy link
Author

<tag-input [ngModel]="['@item']" [onlyFromAutocomplete]="false">
<tag-input-dropdown [showDropdownIfEmpty]="true" [focusFirstElement]="true" [displayBy]="'value'"
[identifyBy]="'id'" [autocompleteItems]="autocompleteItemsAsObjects">

({{ index }}) {{ item.id }}: {{ item.value }}


//////
autocompleteItemsAsObjects = [
{value: 'Item1', id: 0, extra: 0},
{value: 'item2', id: 1, extra: 1},
{value: 'item3', id: 2, extra: 2}
];
**** explain: i test it, but no forcus in the first item, it's really important, i think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant