ghiden / angucomplete-alt

Autocomplete Directive for AngularJS. A fork of Daryl Rowland's angucomplete (https://github.com/darylrowland/angucomplete) with some extra features.
https://ghiden.github.io/angucomplete-alt
MIT License
943 stars 496 forks source link

Add autofocus attribute #73

Open ghiden opened 10 years ago

SpaceK33z commented 9 years ago

This would be very nice, at this moment I focus the input field with this code (I want to focus it after the user has clicked on a search icon):

if ($scope.showSearchForm === true) {
    $timeout(function() {
      var searchInput = document.getElementById('search-query_value');
      searchInput.focus();
  }, 0);
}
sipomun commented 9 years ago

how to add attributes in angucomplete-alt.js Ex: I want to add url-web

akilhoffer commented 9 years ago

+1 for this feature. I really want to be able to declaratively auto focus the input element.

vdakalov commented 9 years ago

+1. Moreover, it would be nice to translate all unused attributes on the input

blackotruck commented 9 years ago

I use the autofocus attribute directly on the input in a custom template, and it 'works' but the focus is inmediatly lost =S

Pirozek commented 7 years ago

+1 for this feature, I have your awesome directive in modal window and need to focus it on display, so this feature would be really cool :)