PDA

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



cabal
17 Apr 2013, 1:02 AM
REQUIRED INFORMATION
Ext version tested:

Ext 4.2.0 GA
Ext 4.2.1.760
Browser versions tested against:

FF20
DOCTYPE tested against:

HTML 4.01 Transitional
Description:

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

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