Results 1 to 5 of 5

Thread: combo box is not opening in IE

  1. #1

    Default Answered: combo box is not opening in IE

    Hello, guys, I'm making an application that is using combo box but the problem is that when ever I try to expand the combo box it does not expands. Please tell me what is it that I'm doing wrong.


    Here is the code for Combobox

    Code:
    Ext.define('TutorialApp.view.main.Image', {
        extend: 'Ext.panel.Panel',
        xtype: 'imageStorealias',
        
        items: [ 
        {
                xtype: 'combo',
                            width: 145,
                            itemId: 'activityCombobox',
                            cls: 'activityCombobox',
                            store: {
                                xtype: 'store',
                                fields: [ 'name', 'value' ],
                                data: [ {
                                    name: "5 minutes",
                                    value: 5
                                }, {
                                    name: '15 minutes',
                                    value: 15
                                }, {
                                    name: "60 minutes",
                                    value: 60
                                }, {
                                    name: "360 minutes",
                                    value: 360
                                } ]
                            },
                            queryMode: 'local',
                            displayField: 'name',
                            valueField: 'value',
                            value: 60,
                            editable: false,
                            listeners: {
                                change: 'onChangedActivityPeriod',
                                afterrender: function( cmp ) {
                                    // debugger;
                                    var input = cmp.getEl().down('#' + cmp.getInputId());
                                    input.dom.readOnly = true;
                                    input.on('focus', function() {
                                        //on firefox this blurs also popup, so it's unusable. better have blinking cursor than unusable field
                                        if ( !Ext.browser.is.Firefox ) this.blur();
                                    });
                                    Ext.fly(document.body).on("click", function( e ) {
                                        if ( !Ext.fly(e.getTarget()).findParent(".activityCombobox") ) {
                                            cmp.collapse()
                                        }
                                    });
                                }
                            }
        } ],
        
    });

  2. I see the issue when I run your code. The problem is this line:
    Code:
    if (!Ext.browser.is.Firefox) this.blur();
    When I remove it, the boundlist appears in IE.

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Which version of IE? Do you see the issue using the doc example?
    http://docs.sencha.com/extjs/6.2.1/c....ComboBox.html

  4. #3

    Default

    I'm using IE 11 and nope that example is working fine. I'm just not able to understand what is that I'm doing wrong due to which it is not opening in the Internet explorer

  5. #4

    Default

    any help anybody ??

  6. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    I see the issue when I run your code. The problem is this line:
    Code:
    if (!Ext.browser.is.Firefox) this.blur();
    When I remove it, the boundlist appears in IE.

Similar Threads

  1. [FIXED] Error when opening combo child class with a configured ViewController
    By jorgemanrubia in forum Ext 5: Bugs
    Replies: 1
    Last Post: 6 May 2014, 3:14 PM
  2. Opening PDF
    By andreig in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 22 Nov 2011, 1:02 AM
  3. Job Opening
    By diederikveelo in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 24 Jan 2011, 12:16 PM
  4. Opening new tab from within a tab
    By Newbiee in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 5 Jun 2009, 7:13 AM

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
  •