Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343800 - [Combo] Drop-down list is not hidden, when you click on the check/radio button text
Summary: [Combo] Drop-down list is not hidden, when you click on the check/radio butto...
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: 1.4 M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-26 04:42 EDT by Ivan Furnadjiev CLA
Modified: 2013-12-16 00:32 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Furnadjiev CLA 2011-04-26 04:42:15 EDT
Reproducible with Controls Demo:
1. Start Controls Demo -> Button Tab
2. Open "Cursor" combo list
3. Click on the checkbox "Background Image" text
Combo list is still visible and checkbox is selected. The correct behavior is to hide the list and not selecting the checkbox.
Comment 1 Ralf Sternberg CLA 2011-04-26 05:32:41 EDT
I also observed that a shell that contains a combo box can be moved while the combo's drop-down list is opened. It's probably the same problem, the drop-down list does not auto-close on focus out.
Comment 2 Ivan Furnadjiev CLA 2011-04-26 06:02:58 EDT
(In reply to comment #1)
> I also observed that a shell that contains a combo box can be moved while the
> combo's drop-down list is opened. It's probably the same problem, the drop-down
> list does not auto-close on focus out.
This is related to bug 343557 - removing Combo.js#_reDispatch fixes this behavior as well. But if we remove it we should find a solution to scrollbar issue described here: bug 332436 comment #2.
Comment 3 Ivan Furnadjiev CLA 2011-04-26 09:55:08 EDT
A second click on the check/radio button text usually closes the combo list.
Comment 4 Ivan Furnadjiev CLA 2011-04-26 10:41:29 EDT
This issue is reproducible with Firefox 4 (3.6) and Opera 11. Works fine in IE9, Safari 5.0.5 and Chrome 11. The reason for it is a missing "click" event when you click on the check/radio button text. When you click on the check/radio icon we have "mousedown", "mouseup", "click" events, but on the first click on the text - only "mousedown", "mouseup".
Comment 5 Ivan Furnadjiev CLA 2011-05-02 07:23:01 EDT
Fixed in the EventHandler.js#_onmouseevent_post to not focus the target widget if there is an events captured widget. JS tests added.
Comment 6 deepak patwal CLA 2013-12-16 00:32:33 EST
Hi,

I have a question, Is this issue is also be with SWT as while implementing the the combo box i am also having the similar kind of issue where combo list is not getting closed when mouse focus is moved out or cursor is removed from the combo.