Opened 11 years ago

Closed 10 years ago

#4154 closed bug (worksforme)

Large form select options scroll broken

Reported by: logsdonj Owned by:
Priority: major Milestone: 1.8
Component: ui.dialog Version: 1.6rc6
Keywords: dialog, form, select, option Cc:
Blocked by: Blocking:

Description

When scrolling through large form select options (like a list of countries or states) and clicking an option, the list immediately scrolls to the top of the options and makes a selection from the that area instead.

It looks like the click, change, or scroll events are being intercepted after user input or the selected index is incorrect in UI. By testing on click and change, I was able to see that a click event returned the correct selected value and the change event returned the incorrect selected value as described above.

To give a better visual with a short list, imaging seeing A, B, and C as form select options. Then you scroll down to see D, E, F. When you click on E, the options scroll back to the top and B is selected.

Change History (4)

comment:1 Changed 11 years ago by Jörn Zaefferer

Milestone: TBD1.6

comment:2 Changed 11 years ago by logsdonj

I was able to track my particular issue down to Line 2144 of 1.6rc6.

The dialog mousedown calling

self.moveToTop(event);

is causing this issue for me. After commenting it out my select drop-down worked and selected as expected. I am not sure of other repercussions of this though.

comment:3 Changed 11 years ago by rdworth

Milestone: 1.71.8

comment:4 Changed 10 years ago by Rwhitbeck

Resolution: worksforme
Status: newclosed

Tried to replicate in 1.8rc1 and it worked as expected.

http://jsbin.com/arumo/3

Note: See TracTickets for help on using tickets.