PDA

View Full Version : [ext-4.1-pr1] - [4.0.7] MultiSelect and ItemSelector Controls Bugs



WixSL
25 Oct 2011, 5:52 PM
- OS: Windows XP + SP3.
- Browsers Tested: Chrome 14 / FF 7.01 / IE6 / IE8.
- URL: http://docs.sencha.com/ext-js/4-0/#!/example/multiselect/multiselect-demo.html


Using "MultiSelect Test" or "ItemSelector Test" Example Controls:

THIS STEPS APPLY TO ALL TETSTED BROWSERS:

1.- Disable the control ("Options / Toogle Enable").
2.- Enable the control ("Options / Toogle Enable").

Result:
- "Clear" and "Reset" buttons stop working.
- Clicking elements don't take any effect.
- Menu option "Options / Set value (2,3)" stop working.
- ItemSelector Only: action buttons stay disabled.


OTHER BUGS BY BROWSER:

IE 6/8 : Disabling the control with "Options / Toogle Enable" allows the selection of items by mouse.
Chrome 14 : Disabling the control with "Options / Toogle Enable" make the items barely visible.
FF 7.01 : Disabling the control with "Options / Toogle Enable" make the items barely visible.

NOTE: On ext4.1-Pr1 the ItemSelector control doesn't even appear.

dmvasiliev
9 Dec 2011, 4:45 AM
In MultiSelect the problem is here:


updateReadOnly: function() {
var me = this,
boundList = me.boundList,
readOnly = me.readOnly || me.disabled; // <-------------------------- this is always true
if (boundList) {
boundList.getSelectionModel().setLocked(readOnly);
}
}

Fix:


onEnable: function() {
var me = this;
me.disabled = false; <----------------------- FIX

me.callParent();
me.updateReadOnly();
if (me.boundList) {
me.boundList.enable();
}
},