-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Bug
Copy link
Labels
area/web interfaceRelated to the Mastodon web interfaceRelated to the Mastodon web interface
Description
Steps to reproduce the problem
- Start a new post.
- Enter
#foo. - Hashtag autocomplete should open a pop-up menu with several options.
- Choose one that does not start with
#foo. For example, on my instance, suggestions are#foo,#FanFoo,#SBGGÄnderungsFooand#foo_bar_baz. I've selected#FanFoo.
Expected behaviour
The #foo should've been replaced with #FanFoo.
Actual behaviour
Hashtag autocomplete replaced the #foo I've typed with #fooFoo.
Detailed description
This issue is split off from my comment in #37153.
Apparently, the idea is to always keep the text the user entered verbatim, which normally is a good thing. #36995 even made sure that the case of letters in the original input will be maintained. However, the implementation apparently didn't consider the case where the original input (here: #foo) and the selected hashtag (here: #FanFoo) do not start with the (case-insensitive) same substring.
Mastodon instance
chaos.social
Mastodon version
4.5.2, but also verified on a 4.5.3 instance
Browser name and version
Firefox 140.6.0esr (64-bit)
Operating system
Debian trixie
Technical details
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/web interfaceRelated to the Mastodon web interfaceRelated to the Mastodon web interface
Type
Projects
Status
Done