Cursor misalignment in the categories box (Firefox)

A little misalignment here on Meta (and in my forum too) when I use Firefox (latest version).

When you create a topic and click to choose a category the cursor appears under the box :

6 Likes

Yes, Firefox has a known ā€œcursor dropā€ problem.

https://meta.discourse.org/t/cursor-is-offset-in-firefox-linux-only-when-entering-tags/27073?u=mittineague

5 Likes

I suspect this bug is different from this Linux only bug:

  • Iā€™m using Firefox on Windows 8 and have the same issue

  • The offset is much greater:
    more or less in the next line vs.
    in the same line but with missing padding

  • Itā€™s happening only in the search box for topics and not in the otherwise pretty similar styled general search box

So while still being unique to Firefox (itā€™s not happening in Chrome or Edge) it also appears to be unique to the topic search box, so this might indicate that itā€™s also a discourse issue and not only a browser issue.

2 Likes

I canā€™t reproduce the misaligned cursor on search box anywhere. Iā€™m using Firefox 47.0 on Ubuntu Gnome 16.04. Makes no difference if I open the box by keyboard or mouse; cursor is correctly placed.

1 Like

I can reproduce the issue with Firefox (45.0.2) on an ArchLinux Gnome VM, on Windows Iā€™m up-to-date with Firefox 47.0.1.

Also it should be noted that the cursor stays at this position even when typing something:

1 Like

Just as a reminder, this bug still persists in Firefox 49.0.1 (now on Windows 10) and the latest discourse version.
Any new insights on this?

I think picking select2 was a very big historical mistake I would like us to rectify. Instead we should have an ember component for dropdowns that we can easily hack on. It would contain much less code, handle localizations in the same way the rest of our code does and be something we can extend. The CSS around select2 is a nightmare and we often find ourselves !importanting our way out.

Overall picking select2 was a very big mistake. If I had a time machine I would time machine it out.

cc @eviltrout

4 Likes

Iā€™d be happy to replace it. The basic cases arenā€™t hard, but it does do some nice things like searching and stuff that weā€™d have to replicate.

I agree overall it would be less pain.

6 Likes

@joffreyjaffeux will be taking this as he replaces select2 with the new component :v:t4:

6 Likes

Fixed