Login dialog closes upon mouse button up

AI-generated summary

Users are reporting a bug where the login modal dialog closes when the mouse button is released outside the dialog, which is causing frustration. jack2 describes the issue occurring when selecting text in the username field, and codinghorror confirms it also affects the search box, calling it “super annoying.” nbianca has proposed a fix using mousedown instead of click, but the issue’s origin—whether it’s a new bug or a regression—remains unclear. codinghorror confirms the behavior is new and still present on meta.

There is an annoying behavior with the login modal dialog: it closes whenever you release the mouse button outside of the dialog. I think this issue is rather new.

This is what happens to me all the time:

  1. I click Login
  2. I select the previous user name with the mouse so that I can enter another one (I do this a lot for testing purpose). To do this, I click at the end of the user name, drag the selection to the left and release the mouse button outside of the dialog.

Expecting behavior: the user name ends up selected.
Actual behavior: the dialog closes.

9 Likes

I’ve seen this with the search box too and it is suuuper annoying cc @sam.

7 Likes

I have fixed this by using mousedown instead of click, but I am not 100% sure about this solution.

I cannot remember, is this a new bug or a regression?

6 Likes

This is definitely new, I would have noticed the search drop-down closing on mouse-up before now. It was super irritating.

It’s still happening for me on meta though. Mouseup outside the search dialog is closing it

3 Likes