Results 1 to 5 of 5

Thread: Extjs 6.2 : setValue Method on textfield render

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-22812 in 6.2.1.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2015
    Posts
    39
    Vote Rating
    0
      0  

    Default Extjs 6.2 : setValue Method on textfield render

    Hi,
    I'm using ExtJs 6.2,

    On a textfield render event, I used to use the setValue method with extjs 6.0.1, but after the upgrade this method occurs an Extjs error with a bad display

    You see it in the following fiddle:



    Is it a bug ? or agreed ?

    Thank you

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,385
    Vote Rating
    1540
      0  

    Default

    Curious why you are doing this in a listener? Why shouldn't you just use the value config?

    Also, the emptyClsElements array is set in the afterRender method so if you used afterrender event then no error will occur.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

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

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2015
    Posts
    39
    Vote Rating
    0
      0  

    Default

    Our web application is quite complicated and surrounded by business rules, This is why we made this choice for some situations.
    As solution, I am already using the afterrender event.
    But I think if it's a bug it should be reported !

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,237
    Vote Rating
    1015
      0  

    Default

    A bit of an odd use case, but there's no reason why this shouldn't work.

  5. #5
    Sencha User Psychokrameur's Avatar
    Join Date
    Jun 2008
    Posts
    195
    Vote Rating
    19
      0  

    Default

    Hello, same bug for me! (on version 6.2.0.981)

Similar Threads

  1. DisplayField setValue after render
    By Zdeno in forum Ext 5: Q&A
    Replies: 5
    Last Post: 21 Nov 2014, 3:03 PM
  2. problem in setValue of textfield.
    By nareh tank in forum Ext: Q&A
    Replies: 2
    Last Post: 26 Oct 2012, 11:31 PM
  3. Replies: 3
    Last Post: 23 Jul 2012, 7:42 PM
  4. Textfield setValue vs invalid
    By Jack9 in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 2 Nov 2009, 4:57 AM
  5. Textfield - reset and setValue
    By ben_dog in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 8 Sep 2008, 2:11 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
  •