Kankuro wants to modify the tag dropdown menu to retain focus after a tag is picked in the topic editing page, rather than closing and requiring users to click on it again. Johani suggests that this might be a complex task and asks for the underlying problem being solved, offering an alternative approach. Kankuro clarifies that it’s not a critical issue, but rather an inconvenience, especially for mobile users. Johani provides resources for learning about Discourse’s client-side API, including a section of the theme developer’s guide and the plugin-api.js file in the repository. cpradio helps to clarify the context by asking which tag dropdown menu is being referred to, with Kankuro confirming it’s the one when composing/editing a topic.
How could I go about making it so the tag dropdown menu doesn’t close when a tag is picked, but instead if closed is the user clicks away to remove the focus?
I’m still getting used to Discourse’s software and haven’t used ember.js before. I also know that there is a sort of front-end api that can be used as seen here, 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. If anybody knows of any docs explaining the client api that would be awesome.
It’s not really a problem, just an inconvenience for some who are on mobile especially to have to click on it each time after adding a tag to a new topic. As mentioned below, I’m referring to when creating/editing a topic, which doesn’t seem to redirect me when adding new ones to the thread.