[FIXED] [#1514] [4.3.0] dropdown reset

  1. #1

    [FIXED] [#1514] [4.3.0] dropdown reset

    Hi
    There is a bug in resetting the dropdown field. Either this.reset or if the containing form resets itself, there pops out this bug. It tries to applyEmptyText() and does not find it.

    So here is a quick fix until it's fixed in the branch:

    Ext.net.DropDownField.prototype.applyEmptyText = function () { this.refreshEmptyText(); };
    Last edited by fabricio.murta; Jul 26, 2017 at 11:17 PM.
  2. #2
    Hello @mirwais!

    Thanks for reporting this bug!

    Seems this was due to an undocumented change between ExtJS 6.0.2 to 6.2.0. See the magic:
    - here you have it: http://docs.sencha.com/extjs/6.0.2/c...1.html#line931
    - here you don't: http://docs.sencha.com/extjs/6.2.0/c...s.html#line946

    And it wasn't caught by us -- although we also inspect for undocumented changes during the migration -- because the change was on just a class dropdownfield inherits from.

    We've created issue #1514 to track & fix this bug.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello again!

    The fix has been applied to Ext.NET and will be out publicly when 4.3.0 is released!

    Just an observation, the this.refreshEmptyText() method you are calling instead seems not to be documented on ExtJS documentation, not even as a private method, so expect it to break without further notices between versions.
    Fabrício Murta
    Developer & Support Expert
  4. #4
    Hi Fabricio
    Thank you for quick fix and the hint, I will remove refreshemtyText as I don't need it anyways.

Similar Threads

  1. Replies: 3
    Last Post: Jan 27, 2017, 8:00 AM
  2. Replies: 7
    Last Post: Jun 23, 2015, 3:28 PM
  3. [OPEN] [#116] Problem to reset a combo
    By 78fede78 in forum 1.x Premium Help
    Replies: 3
    Last Post: Jan 04, 2013, 1:48 PM
  4. Replies: 6
    Last Post: Jan 28, 2012, 2:14 AM
  5. Replies: 6
    Last Post: Feb 08, 2011, 7:17 PM

Posting Permissions