1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    543
    Vote Rating
    0
    dbassett74 is on a distinguished road

      0  

    Default EventObject.preventDefault doesn't work in IE8?

    EventObject.preventDefault doesn't work in IE8?


    Seems like in IE8, the e.preventDefault() line in the below code has no affect:

    Code:
    keydown: function(cbo, e) {
        var c = e.getCharCode();
        if (c == e.TAB) {
            if (Ext.isEmpty(pnl.getComponent("AgencyCombo").getValue())) {
                e.preventDefault();
                pnl.getComponent("AgencyCombo").focus(true, 100);
            }
        }
    }
    Seems to work just fine in IE6, FF3, Chrome, Safari and Opera. Is this a known issue and are there any work arounds?

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2008
    Posts
    19
    Vote Rating
    0
    nebaff is on a distinguished road

      0  

    Default +1

    +1


    i'm trying to override ctrl+s

    works in google docs, so possible with IE8

Thread Participants: 1