View Full Version : [FIXED] beforeBlur Ext.form.field.Date rawToValue conversion issue

22 Oct 2013, 1:47 AM
Ext version tested:

Ext 4.2.0
Ext 4.2.1

Browser versions tested against:

DOCTYPE tested against:

When implementing overloaded methods for rawToValue and valueToRaw for Ext.form.field.Date , this behaviour is reverted before blur, due to beforeBlur not using rawToValue to get the field's value.

Steps to reproduce the problem:
Extend / overload Ext.form.field.Date.rawToValue and Ext.form.field.Date.valueToRaw
Focus it and enter a value
Unfocus and retrieve the value

The result that was expected:
A value, calculated using the overloaded rawToValue

The result that occurs instead:
The value missing the conversion

An example is visible here: http://jsfiddle.net/kingsquare/zshxZ/

Fix in Ext.form.field.Date:

beforeBlur = function () {
var me = this,
v = me.rawToValue(me.getRawValue()),
focusTask = me.focusTask;

if (focusTask) {

if (v) {

Gary Schlosberg
22 Oct 2013, 8:39 AM
Thanks for the report! I have opened a bug in our bug tracker.