View Full Version : [FIXED] [4.2.0 GA] Invalid checkbox disappears

17 Apr 2013, 1:02 AM
Ext version tested:

Ext 4.2.0 GA
Browser versions tested against:

DOCTYPE tested against:

HTML 4.01 Transitional

When checkbox (input type=button with background) is in invalid state (for example: markInvalid), it disappears.
Steps to reproduce the problem:

create checkbox
make it invalid
The result that was expected:

exclamation sign on left, checkbox visible
The result that occurs instead:

error mark is ok, but checkbox changes background image and it is not visible
in neptune theme it's ok
Test Case:
Add following item to dynamic form example

fieldLabel: 'Checkbox',
listeners: {
render: function(box) {
box.markInvalid('Checkbox is hidden');
xtype: 'checkbox'

Possible fix:

The reason is input.x-form-invalid-field css class that changes the background image.

check the difference in neptune and apply it to classic and apply it OR
mark x-form-checkbox background as important (dirty) OR
change default invalidCls for checkbox (as I did)
Additional CSS used:

only default ext-all-gray.css

17 Apr 2013, 7:32 AM
Thanks for the report! I have opened a bug in our bug tracker.