Results 1 to 4 of 4

Thread: [Modern] Ext.field.Text -> reset()

    You found a bug! We've classified it as EXTJS-19344 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,751

    Default [Modern] Ext.field.Text -> reset()

    hi guys,

    take a look at https://fiddle.sencha.com/#fiddle/u27

    calling reset() on a field does clear the inputEl, but calling getValue() afterwards still shows the value that should have get cleared.

    using setValue() for now, but this looks like a bug to me.
    Best regards
    Tobias Uhlig

  2. #2
    Sencha - Support Team bjdurham85's Avatar
    Join Date
    Mar 2014
    Posts
    962

    Default

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

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2015
    Posts
    19

    Default any workaround?

    Quote Originally Posted by bjdurham85 View Post
    Thanks for the report! I have opened a bug in our bug tracker.

    Any workaround??
    It's a huge bug!.

  4. #4

    Default (ExtJs 6 Modern)field.getValue() return the old value after reset()

    Workaround:
    Modifiy file \ext\modern\modern\src\field\Text.js and add this member function:
    Code:
    getValue: function() {
        var me = this;
     
        me._value = me.getComponent().getValue();
     
        me.syncEmptyCls();
     
        return me._value;
    }

Similar Threads

  1. Replies: 2
    Last Post: 16 Sep 2015, 6:07 PM
  2. [FIXED] Ext.field.Field styles in modern/theme-base/sass/src/form/Panel.scss
    By themightychris in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 19 Jul 2015, 8:47 PM
  3. Form Field Reset Enabling field validation in Ie10
    By Sundarganesh Ramar in forum Ext: Q&A
    Replies: 2
    Last Post: 23 Oct 2013, 10:43 AM
  4. Replies: 1
    Last Post: 10 Sep 2008, 6:08 PM
  5. any way to reset pagingtoolbar's start text?
    By chinull in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 9 Jun 2008, 7:35 PM

Posting Permissions

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