Results 1 to 2 of 2

Thread: Ext.form.field.Picker#setEditable not handling onTriggerClick of inputEl

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-18709 in 6.0.1.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    63

    Default Ext.form.field.Picker#setEditable not handling onTriggerClick of inputEl

    Fiddle:

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


    Ext version tested:

    • 5.1.0.107
    • 5.1.1.451

    Browser versions tested against:
    • Chrome
    • Firefox
    • IE9
    • IE11

    Description:
    • Ext.form.field.Picker#setEditable does not add/remove the click listener on the inputEl

    Steps to reproduce the problem:
    • have combo with editable:false
    • set editable to true
    • click inside the combo

    The result that was expected:

    • combo stays collapsed

    The result that occurs instead:
    • combo expands


    Fix:
    Code:
    Ext.define('Ext.fix.form.field.Picker', {
        override: 'Ext.form.field.Picker',
        
        setEditable: function(editable) {
            var me = this,
                inputEl = me.inputEl;
            
            if (inputEl && me.editable !== editable) {
                me[editable ? 'mun' : 'mon'](inputEl, 'click', me.onTriggerClick, me);
            }
            
            me.callParent(arguments);
        }
    });

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

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

    editable will become a true config. a renderConfig with an updater which adds/removes the click listener.

Similar Threads

  1. unable to suspendEvent on inputEl of form Field
    By HRicqTwistede in forum Ext 5: Q&A
    Replies: 1
    Last Post: 1 Dec 2014, 2:10 PM
  2. Replies: 2
    Last Post: 7 Nov 2014, 1:37 AM
  3. Replies: 1
    Last Post: 14 Nov 2012, 10:14 AM
  4. [FIXED] Editor bug -- unconditional use of field.inputEl
    By GArrow in forum Ext:Bugs
    Replies: 0
    Last Post: 17 Aug 2011, 2:45 PM
  5. Replies: 2
    Last Post: 7 May 2011, 3:22 AM

Posting Permissions

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