# Groups autocomplete in admin broken?

**URL:** https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552
**Category:** UX
**Created:** [14 Aprile 2016, 10:14am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552 "2016-04-14T10:14:05Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [14 Aprile 2016, 10:14am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/1 "2016-04-14T10:14:05Z")

</div>

1. I open a user’s Admin page
2. I type a group name into the Custom Group field
3. The autocomplete list pops up
4. The first group in the list is highlighted, while the desired group is underlined  
 ![](https://global.discourse-cdn.com/meta/original/3X/8/1/81c575e47002ece6b522a23d9ee6bda1a2728175.png)
5. Hitting enter selects the highlighted group, not the one I was typing.  
 ![](https://global.discourse-cdn.com/meta/original/3X/2/9/29e5e5a3af2ab3b45b3299309b327454bce4c289.png)

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [14 Aprile 2016, 11:29am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/2 "2016-04-14T11:29:52Z")

</div>

I wish this list filtered as you typed. 🙏 🌟

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [14 Aprile 2016, 2:02pm UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/3 "2016-04-14T14:02:02Z")

</div>

I’ve created a pull request which I believe will add filtering…

**It’s going to need testing / checking by someone else** before being accepted as pull request as I don’t have a development environment setup.

[https://github.com/discourse/discourse/pull/4171](https://github.com/discourse/discourse/pull/4171)

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [14 Aprile 2016, 2:15pm UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/4 "2016-04-14T14:15:58Z")

</div>

thanks for pointing this out - I have been meaning to mention it. I have alot of groups on my site and having it autocomplete and autofilter will be a big help.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [14 Aprile 2016, 2:21pm UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/5 "2016-04-14T14:21:48Z")

</div>

A development note:

I noted that this code uses a [now deprecated `select2` option](https://select2.github.io/options.html#query) called `query`. This might want to be added to a todo list of some kind.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [21 Aprile 2016, 2:26am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/6 "2016-04-21T02:26:13Z")

</div>

@Tom_Newsom with these results being filtered now, for me this works as expected. Does this cover your request completely?

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [22 Aprile 2016, 8:02am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/7 "2016-04-22T08:02:46Z")

</div>

Works perfectly 🙂 Thanks!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [22 Aprile 2016, 8:18am UTC](https://meta.discourse.org/t/groups-autocomplete-in-admin-broken/42552/8 "2016-04-22T08:18:06Z")

</div>


