Results 1 to 6 of 6

Thread: Can't set date to blank

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2008
    Location
    California, USA
    Posts
    76

    Exclamation Can't set date to blank

    I can't set a date to blank. It started when rawDate/rawDateText was added to Ext.form.field.Date

    I noticed this in a grid like this: https://fiddle.sencha.com/#fiddle/1a5g
    I also found this fiddle though no bug report: https://fiddle.sencha.com/#fiddle/192b

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    901

    Default

    Your bug report is a duplicate of this one.

  3. #3
    Ext JS Premium Member
    Join Date
    Oct 2008
    Location
    California, USA
    Posts
    76

    Default

    It might be but it claims it is fixed in 6.0.3 and I still have the problem in the latest nightly.

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    901

    Default

    Try the following override or simply revert datefield to the way it was in 6.0.1 to fix the issue. The 2 digit year format date bug (the Y2K bug) fixed in 6.0.2 by mschwartz which introduced other major bugs is irrelevant for most people.
    Code:
    Ext.define('Ext.overrides.DateField', {
        override: 'Ext.form.field.Date',
    
    
        getValue: function() {
            return this.callSuper();
        },
    
        getSubmitValue: function() {
            var format = this.submitFormat || this.format,
                value = this.getValue();
    
    
            return value ? Ext.Date.format(value, format) : '';
        }
    });
    Last edited by hakimio; 11 May 2016 at 6:34 AM. Reason: added getSubmitValue() override

  5. #5
    Ext JS Premium Member
    Join Date
    Oct 2008
    Location
    California, USA
    Posts
    76

    Default

    Thanks, I've fixed using the onBlur override from the other thread. Just want to make sure it's reopened as not fixed.

  6. #6
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    That issue is scheduled to be fixed in 6.0.3, but it hasn't been merged yet.

Similar Threads

  1. date format in IE - shows blank!!
    By baven in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 7 Jun 2016, 11:21 PM
  2. Replies: 0
    Last Post: 11 Nov 2014, 2:05 AM
  3. Date column showing up blank in grid
    By anewbornbunny in forum Ext: Q&A
    Replies: 1
    Last Post: 15 Jul 2014, 3:21 PM
  4. Allow Blank in Date Field
    By Arthur B in forum Ext GWT: Help & Discussion (1.x)
    Replies: 5
    Last Post: 4 Dec 2012, 1:23 AM
  5. wrong value on the grid's date field if date is blank
    By hellosudhir in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jan 2011, 4:13 AM

Posting Permissions

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