Results 1 to 3 of 3

Thread: Wrong value in datefield viewModel when set value to null.

    You found a bug! We've classified it as EXTJS-26026 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Mar 2015
    Posts
    2

    Default Wrong value in datefield viewModel when set value to null.

    Hi. I found next unexpected behavior for datefield.
    I have textfield, that should be disabled until we select date.
    After init binding works fine.
    But if I reset value by clicking "Clear" button, textfield leave enabled, that is not expected behavior.
    Link to fiddle: https://fiddle.sencha.com/#view/editor&fiddle/23nr

    Any ideas how to deal with it?

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    Try this as an override:

    Code:
    Ext.define(null, {
        override: 'Ext.form.field.Date',
    
        valuePublishEvent: ['change', 'blur']
    });
    I will create a bug report for this.

  3. #3
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

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

Similar Threads

  1. DateField validating minValue/maxValue using ViewModel
    By Robert.Rosenberger in forum Ext JS 6.x Bugs
    Replies: 0
    Last Post: 16 Aug 2016, 11:47 PM
  2. Why not possible to bind DateField format to a ViewModel value?
    By tangix in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 18 Jan 2016, 7:59 AM
  3. ViewModel.getStores() returns null
    By stephanschuster in forum Ext 5: Bugs
    Replies: 3
    Last Post: 23 Aug 2015, 12:36 AM
  4. [FIXED] ViewModel.getStores always returns null
    By westoncerny in forum Ext 5: Bugs
    Replies: 4
    Last Post: 20 Mar 2015, 12:23 PM
  5. datefield format in ViewModel
    By Leshicus in forum Ext 5: Q&A
    Replies: 5
    Last Post: 13 Jan 2015, 4:05 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
  •