Results 1 to 4 of 4

Thread: date field setValue does not publish changes like text field does

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-17876 in 6.7.0.
  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    242

    Default date field setValue does not publish changes like text field does

    See how the date does not update in the title programatically like the text does:



    Using the date input itself will publish however. Looking for a fix now...

  2. #2
    Sencha User
    Join Date
    Jun 2008
    Posts
    242

    Default

    This issue stems that datefield cannot publish on change with the current default changeBuffer since the user can be typing in a partial date and the validation code will execute causing the field to populate the rest of the date before the user is done entering it.

    Seems to behave much nicer with change in the publish list, and a very long buffer:

    Code:
    Ext.define('overrides.form.field.Date', {
        override: 'Ext.form.field.Date',
        valuePublishEvent: ['select', 'blur', 'change'],
        checkChangeBuffer: 1000
    });

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

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4

    Default

    I'm using 6.0.1, by default (without using The0s' solution), the viewmodel is not updated when updating datefield using setValue.
    I hope Sencha will include a built-in solution in the next release.

    @The0s, thanx for providing the solution. I havent tested your solution in ExtJs5 but in 6.0.1, changing checkChangeBuffer is not needed.

Similar Threads

  1. [INFOREQ] Transform a text field -> date field for fireworks
    By mark0978 in forum Sencha Architect 3.x: Bugs
    Replies: 1
    Last Post: 25 Nov 2013, 8:53 AM
  2. [FIXED] Architect crash while transforming a text field to a date field
    By mark0978 in forum Sencha Architect 3.x: Bugs
    Replies: 1
    Last Post: 15 Nov 2013, 7:14 AM
  3. Date field that allows date OR any other text
    By nightwatch in forum Ext: Discussion
    Replies: 1
    Last Post: 18 Apr 2012, 10:57 AM
  4. ST 1.1: Date picker field sets field text to 0/<day>/Y
    By vgribok in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 25 Apr 2011, 9:38 AM
  5. date field text input
    By Noolaan in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 14 Aug 2009, 9:34 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
  •