jcouyang / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

ui.Select setOpen method is not enabling keyboard listeners #364

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1.Create new instance of select component 
var select = new goog.ui.Select(null, null,
            goog.ui.FlatMenuButtonRenderer.getInstance());
render it in hidden component
2. set listener that will enable hidden component and
3. run select.setOpen(true);

What is the expected output? What do you see instead?
Expected is select menu appears opened, in the same exact way like i would 
click on it. Now it does apper but keyboard events are not active on this 
element. Up/Down arrows doesn't change selected option
neither enter selects option. Clicking such componen and enablin it by mouse 
enables all of keyboard listeners and it works like it should. documentations 
states setOpen should be equivalent of same action like click on that component.

What version of the product are you using? On what operating system?
closure-library-20110323-r790.zip/linux

Please provide any additional information below.

Original issue reported on code.google.com by mar...@mindojo.com on 20 Aug 2011 at 5:32

GoogleCodeExporter commented 9 years ago

Original comment by chrishe...@google.com on 9 May 2012 at 11:00