Using backspace in search (when adding new tags) removes existing tags from topic

Hi all,

when trying to add tags to an existing topic, it often happens to me that I accidentally delete tags from that topic, just because I want to correct a typo when searching for the tag name.

It seems that the first time hitting ⟵ Backspace will delete the last typed letter, but then the latest tag is highlighted, and when you press ⟵ Backspace again, that tag gets removed. I find that behavior rather annoying.

Is anyone else seeing this as well?

Yes agreed I should tweak this, will make this happen only if input is empty.

4 Likes

That will do it:

https://github.com/discourse/discourse/commit/883901e4c0bc293463d15fdcacde1c80707ca2cb

Thanks.

5 Likes