Closed troolee closed 6 years ago
This code has been recently added because users asked to set focus to the element when a new value is selected.
However, as you mentioned to set focus does not seem right for initial status without user interaction. Let me see what I can do.
BTW, thanks for reporting this.
Hi, Same issue here, the input with auto-complete directive takes autofocus.
Solved with 0.13.3 release.
Oh... This doesn't solve the issue... There was no issue on 0.13.3 I assume
Agreed, solved wasn't the right term... Don't hesitate to contribute to this package if you could. Thanks
Same issue here
Hi there. Maybe my changes will help to resolve this problem. I had create PR https://github.com/ng2-ui/auto-complete/pull/288 where I had use a new property to make this behavior more configurable.
Hi, I'm still having this issue... No news?
[re-focus-after-select]="false"
is working.
I guess this issue can be closed :+1:
Why was it implemented only in directive and not in component??
Hi there,
Found an unexpected behaviour. I've been using auto-complete 0.14.4 with reactive forms. In case if a field has initial value auto-complete input gets focus at startup.
Here is a plunker script that reproduces this: http://plnkr.co/edit/sFJOqsQXBEMUkGrKbhRH?p=preview