Results 1 to 4 of 4

Thread: PropertyGrid filefield Editor

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

    Default PropertyGrid filefield Editor

    https://fiddle.sencha.com/#fiddle/lpf

    Ext version tested:


    • Ext 5.1rev 0


    Browser versions tested against:

    • Google Chrome 42.0.2311.90
    • FF37.0.1 (firebug2.0.9 installed)


    DOCTYPE tested against:

    • <!DOCTYPE HTML>


    Description:

    • In Google Chrome (not in Firefox), a "fielfield" inside a form as a propertyGrid editor does not behave as expected: picking file seems not to have immediate effect, validation method "isValid" says the value is empty (even when a file is actually selected), then the new value is not set to the propertyGrid field. Clicking a couple of times on the propetyGrid field (in the example the cell <file,Value>) then the selected file name is set to it. The issue appears to be only on Google Chrome, while in Firefox it works as expected, i.e. the file name is set to the propertyGrid field immediately after it has been selected.


    Steps to reproduce the problem:

    • Open the fiddle at the link above.
    • Click on the cell <file,Value> in order to make the "filefield" appear.
    • click on the "filefield" button.
    • Select a file.




    The result that was expected:

    • Validation succeeds
    • the file name is set to the propertyGrid field




    The result that occurs instead:

    • validation fails as nothing has been selected
    • propertyGrid field value is not updated

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451

    Default

    First, why all the nesting in a form and a panel? You could just as simply have done:



    The cause of this is that Chrome is removing focus from file field as focus is then on the file picker dialog. This is also what controls the edit complete is when you blur from the field it reacts to the focus change to complete the edit.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2015
    Posts
    13

    Default

    Hi Mitchell,

    thanks for your reply. I used a form because I need to submit the selected file in the "change" event of the "filefield". About nesting the form inside a panel, there is no particular reason, other that it worked better than without the outer panel. I'll try using the form without its outer panel again and see what happens.

    Unfortunately, the example you suggested suffers the same problem I described. Isn't there any workaround for this? Unfortunately the web app I am developing needs to provide full support for Chrome.

    Thanks

  4. #4
    Sencha User
    Join Date
    Mar 2015
    Posts
    13

    Default

    Just another bit which I hope may turn to be useful:

    with respect to the fiddle in my first post, placing a breakpoint in the getValue override makes the picked value be set.

Similar Threads

  1. Replies: 3
    Last Post: 6 Mar 2014, 3:56 AM
  2. Problem with Password custom editor in PropertyGrid
    By Voronchuk in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Feb 2009, 8:09 AM
  3. How can I dynamically change the editor in an editorgridpanel/propertygrid?
    By guptacse in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 11 Aug 2008, 3:27 AM
  4. Custom ComboBox Editor in PropertyGrid
    By aendo in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Nov 2007, 9:07 PM

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
  •