Results 1 to 5 of 5

Thread: 6.2.1 Modern Toolkit: Ext.field.File cannot be reset

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    72

    Default 6.2.1 Modern Toolkit: Ext.field.File cannot be reset

    I have tried various methods of resetting the value of a filefield in the modern toolkit but no success.

    After a file has been selected. The field cannot be reset.
    I have tried calling reset() on the enclosing formpanel as well as calling setValue(null) and setValue('') on the filefield itself.

    I have not been able to get Fiddle to work with the Modern toolkit or I would show you an example. If there is a trick to making Fiddle work with the Modern toolkit let me know and I'll be glad to provide an example.

    I am using Ext JS 6.2.1.167 Modern Toolkit/Material Theme

    Resetting the underlying form panel seems to work fine in the Classic Toolkit.

  2. #2
    Sencha Premium User alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    320

    Default

    Put everything you have into a fiddle, even if it doesn't run, and we may try to get it working for you.

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    72

    Default

    Here's the Fiddle. It works fine when the classic toolkit is selected but doesn't show anything when the modern toolkit is selected so that could be a problem with my code.

    https://fiddle.sencha.com/#view/editor&fiddle/26vu

  4. #4
    Sencha Premium User alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    320

    Default

    Quote Originally Posted by gsoc2014 View Post
    Here's the Fiddle. It works fine when the classic toolkit is selected but doesn't show anything when the modern toolkit is selected so that could be a problem with my code.

    https://fiddle.sencha.com/#view/editor&fiddle/26vu
    renderTo is not availalbe in modern, and viewport is working a tad differently, so the correct code is this:

    Code:
                //renderTo:Ext.getBody()
            });
            Ext.Viewport.add(panel);
            //panel.show();
    As to your first question, I have no idea, but now that you've got a fiddle to show, getting help may be easier.

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2014
    Posts
    72

    Default

    Thanks. I cleaned up the Fiddle. It definitely shows the issue. Hopefully I can get an answer on this.

Similar Threads

  1. Modern Toolkit - Typeahead support for Text Field
    By javachap in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 5 Jun 2017, 1:03 PM
  2. ExtJS 6 modern toolkit: How to set focus on text field
    By Boris795 in forum Ext JS 6.x Q&A
    Replies: 5
    Last Post: 14 Feb 2017, 4:45 AM
  3. [FIXED] modern toolkit : change event is not fired in Ext.field.Toggle on ext-6.2.0.758
    By David Robert Keller in forum Ext 6.2 Early Access
    Replies: 4
    Last Post: 12 Aug 2016, 7:43 AM
  4. Replies: 6
    Last Post: 4 May 2016, 9:43 PM
  5. Replies: 2
    Last Post: 16 Sep 2015, 6:07 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
  •