Results 1 to 3 of 3

Thread: Ext.form.field.Date.altFormats should be empty by default

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User
    Join Date
    Oct 2013
    Kharkiv, Ukraine

    Default Ext.form.field.Date.altFormats should be empty by default

    Here is a fiddle where I expect "20" to be invalid:
    but when you type "20" you can see that "2" is invalid and newValue is "2", but 20 is valid and newValue is Thu Jul 20 2017 00:00:00 GMT+0300. It's successfully parsed by parseDate method ( since altFormats contains '|d|' as a substring. So from my point of view altFormats config has to be empty by default and only if user wants he can add formats there. Because now you have newValue as Date, rawValue as "20" and if you remove focus from date field you'll have 20 July as a date there. Sounds as a bug for me. Thanks.

    P.S. The same is true for Ext.form.field.Time, so Ext.form.field.Time.altFormats should be empty by default as well.

  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Sydney, Australia


    This config has been like that for quite a long time. It's also discussed in the class level documentation and the default value is clearly visible.

    I don't think there's much benefit in changing things at this point.

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2008
    Germany, Frankfurt


    Sorry for the late reply, here is the fiddle which shows the problem:
    Although I didn't find how to switch between modern and classic it shows exactly the problems which appear to me in modern.

Similar Threads

  1. Replies: 4
    Last Post: 19 Jul 2012, 1:39 PM
  2. Replies: 4
    Last Post: 25 Oct 2011, 2:03 PM
  3. Replies: 1
    Last Post: 19 Oct 2011, 10:35 AM
  4. [FIXED] Ext.form.field.Date do not send post with empty value
    By pkli in forum Ext:Bugs
    Replies: 5
    Last Post: 19 Jul 2011, 11:54 PM
  5. date field empty after form load
    By medinalex in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 11 Feb 2010, 9:26 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts