Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Scrolling SelectItem with Up and Down keys does not work.

    If SelectItem contains just one item and initially no item is selected, when using tab key to have the SelectItem focused, the Up and Down keys do not show the drop down box, and do not scroll through the items. The only workaround I found was to use a mouse to select the item from the drop down box or to set setAllowEmptyValue(true).

    Is there any property of a SelectItem that fixes the behavior (without allowing empty value)?

    The issue was tested on SmartGWT 2.4 in Firefox 3.6.7 and IE8

    To reproduce the issue please use the next code:

    public void onModuleLoad() {

    SelectItem ddbox = new SelectItem("select", "Click Tab key to focus SelectItem");
    ddbox.setValueMap("first value");

    DynamicForm form = new DynamicForm();
    form.setItems(ddbox);

    RootLayoutPanel.get().add(form);

    }

    Thank you in advance.

    #2
    You should still be able to show the drop down via Ctrl+arrow down.
    However you're right that since arrow keys allow you to cycle through multiple options they should also allow you to select a single option when previously the item was empty in this scenario. We've made that change to our code base (the change will show up in the next nightly build)

    Comment


      #3
      Thank you very much, Isomorphic.

      Comment

      Working...
      X