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 :


Yes, Firefox has a known “cursor drop” problem.


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.


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


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.


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