# Make Tag Dropdown Retain Focus After Tag Picked; Client-Side API Questions

**URL:** https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115
**Category:** Development
**Created:** [November 2, 2018, 6:49am UTC](https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115 "2018-11-02T06:49:41Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [November 5, 2018, 6:23am UTC](https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115/2 "2018-11-05T06:23:32Z")

</div>

I think what you’re trying to achieve is not easy. When a tag is selected, the user is directed to a new page.

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/select-kit/components/tag-drop.js.es6#L142-#L150](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/select-kit/components/tag-drop.js.es6#L142-#L150)

So keeping the user on the same page and changing everything else just to keep the tag selector open seems like a lot of work.

What is the real problem you want to solve? There may be easier alternatives.

> [@Kankuro](#):
>
> I also know that there is a sort of front-end api that can be used as seen [here](https://meta.discourse.org/t/a-new-versioned-api-for-client-side-plugins/40051), but I’m not sure where to learn about it, skimming through the repo didn’t really help me understand what each method does and how it can be used

Most of the popular methods are covered [in this section of the theme developer’s guide](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-c). You can also read about those and all the other ones in the repository [here](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/plugin-api.js.es6)

---

_[View the full topic](https://meta.discourse.org/t/make-tag-dropdown-retain-focus-after-tag-picked-client-side-api-questions/101115)._
