Announcement

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

    ComboBoxItem Chrome bug

    SmartGWT Pro nightly build from 3/21

    Chrome 10.0.648.204

    When you run this in chrome, there are no errors, however clicking on the combobox does not trigger it to drop down. the setDefaultToFirstOption() works however. The same behavior is also seen with the SelectItem. The code works perfectly in the latest version of firefox.

    Code:
            DynamicForm modeForm = new DynamicForm();
            modeForm.setTitleOrientation(TitleOrientation.TOP);
            ComboBoxItem modeChooser = new ComboBoxItem();
            modeChooser.setTitle("Pick a Mode");
            modeChooser.setValueMap("Grid", "table", "Extra Special mode", "The Truth"); 
            modeChooser.setDefaultToFirstOption(true);
            modeChooser.addChangedHandler(new ChangedHandler() {
    			@Override
    			public void onChanged(ChangedEvent event) {
    			}
    		});
            
            modeForm.setItems(modeChooser);
            
            modeForm.draw();

    #2
    This looks like a native issue with the GWT plugin for Chrome. We are looking at how best to workaround the issue but you should be aware that it only occurs in development-mode so should not effect live deployments of applications.

    Comment

    Working...
    X