Results 1 to 3 of 3

Thread: setValue() in Ext.form.field.Date does not return the field

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Aug 2015
    Posts
    19

    Default setValue() in Ext.form.field.Date does not return the field

    The function description states that setValue() method returns the date field, which in theory makes the method call chainable. In reality however, the function does not return anything:

    Code:
    setValue: function(v) {
        var me = this;
    
    
        me.lastValue = me.rawDateText;
        me.lastDate = me.rawDate;
        if (Ext.isDate(v)) {
            me.rawDate  = v;
            me.rawDateText = me.formatDate(v);
        }
        else {
            me.rawDate = me.rawToValue(v);
            me.rawDateText = me.formatDate(v);
            if (me.rawDate === v) {
                me.rawDate = null;
                me.rawDateText = '';
            }
        }
        // Notice no return keyword below:
        me.callParent(arguments);
    }

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

    Default

    mschwartz broke it in 6.0.2 and never fixed it even I mentioned that in another report a year ago.

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

    Default

    According to the bug ticket, it was fixed for 6.0.3, which unfortunately hasn't been released yet.

Similar Threads

  1. [OPEN] Ext.form.field.Date .setValue() return value is undefined.
    By karoop in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 17 Mar 2017, 12:43 PM
  2. Replies: 3
    Last Post: 27 Jul 2016, 8:45 PM
  3. Why does Ext.form.Field.setValue() not fire an event?
    By ChrisR in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 24 Jan 2011, 7:16 AM
  4. [HELP] Suddenly unable to use setValue() on Form Field
    By Phunky in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 20 Feb 2008, 4:25 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
  •