搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

change event is not fire for number field in extjs3 FF82

  • 無回覆
  • 1 有這個問題
  • 8 次檢視
more options

In extjs3,I used number field which extend text field and that number field have up and down arrow when click on arrow that time change event is not fire but when I do the same thing with keyboard and press tab then change event is fire. same scenario work in google and IE.

```

{
    xtype: 'numberfield'
    , autoCreate: { tag: 'input', type: 'number', maxlength: '3', min: '0' }
    // , width : 5
    , height: 22
    , minValue: ""
    , maxValue: 999
    , allowNegative: false
    // , selectOnFocus: true
    , disabled: true
    , id: this.ownerCt.id + '_relativeNumber'
    , width: 110
    , enableKeyEvents: true
    ,listeners: {
        scope: this,
        change: function (ele , e) {
        this.changeDropdown(this.ownerCt.id)
        },
        specialkey: function(field, e){
          // e.HOME, e.END, e.PAGE_UP, e.PAGE_DOWN,
          // e.TAB, e.ESC, arrow keys: e.LEFT, e.RIGHT, e.UP, e.DOWN
          if (e.getKey() == e.ENTER) {
          var form = field.ownerCt.getForm();
          form.submit();
          }
          }
          }

          }

```

由 cor-el 於 修改

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題