HasDropDown: don't lose pointer to mouseup listener
when two mousedown events occur in a row.

Not feasible to test this via robot since it requires rapid right-and-left
clicking but see #18094 for test case.

Fixes #18094.

(cherry picked from commit 7ee539e5b74d7f563fb41bc9263c24cd9f0632b0)