-
21 May 2012 1:28 AM #1
A disabled radio button can be selected by clicking its label
A disabled radio button can be selected by clicking its label
Version of Ext GWT
3.0.0
Browser versions and OS
FireFox 11, IE8, Chrome 19 on Windows 7 Pro
Virtual Machine
No
Description
Clicking the text of a disabled radio button selects it
Run mode
Development as well as production mode
Steps to reproduce the problem- Run the provided example
- Click the text "Choice 2"
Nothing happens.
Actual result
(The radio button icon beside) "Choice 2" is selected.
Test case
Code:
Code:public class CheckBoxAndRadioExample implements EntryPoint, IsWidget { public void onModuleLoad() { RootPanel.get().add(asWidget()); } public Widget asWidget() { VerticalLayoutContainer container = new VerticalLayoutContainer(); final Radio radio11 = new Radio(); radio11.setBoxLabel("Choice 1"); final Radio radio12 = new Radio(); radio12.setEnabled(false); radio12.setBoxLabel("Choice 2"); final Radio radio13 = new Radio(); radio13.setBoxLabel("Choice 3"); final ToggleGroup toggleGroup02 = new ToggleGroup(); toggleGroup02.add(radio11); toggleGroup02.add(radio12); toggleGroup02.add(radio13); toggleGroup02.setValue(radio11); HBoxLayoutContainer radioContainer2 = new HBoxLayoutContainer(); radioContainer2.setBorders(true); radioContainer2.add(radio11, new BoxLayoutContainer.BoxLayoutData(new Margins(4))); radioContainer2.add(radio12, new BoxLayoutContainer.BoxLayoutData(new Margins(4))); radioContainer2.add(radio13, new BoxLayoutContainer.BoxLayoutData(new Margins(4))); container.add(new Label("Another bug found (in 3.0.0): You can select the disabled radio button by clicking the text"), new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0))); container.add(radioContainer2, new VerticalLayoutContainer.VerticalLayoutData(1, -1, new Margins(0, 0, 10, 0))); SimpleContainer simple = new SimpleContainer(); simple.add(container, new MarginData(20)); return simple; } }
Remark:
Unfortunately, it seems GXT is quite sensitive for regression bugs.
By fixing bug [EXTGWT-1666], bug [EXTGWT-1844] was introduced (which is by the way still marked as [Open] although it was mentioned in the release notes of RC2 as fixed)
This new bug is clearly also due to the fix of bug [EXTGWT-1666].
-
22 May 2012 4:32 PM #2
Thanks for the report. I've included the details you provided and the regression chain in the ticket. I'll update this thread when we have a fix ready.
-
10 Aug 2012 12:18 PM #3
Apologies for the delay in update. This issue should be fixed in the latest code in SVN.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTGWT-2155
in
3.0.1.


Reply With Quote