-
20 Jun 2012 12:47 PM #1
4.1.1 RC2 keyup event locks text field input
4.1.1 RC2 keyup event locks text field input
Hello, I have a text field to which I'm applying a keyup event in a form via code like this:
The behavior that I'm experiencing is that only the first typed keystroke is appearing when I press a key. Subsequent keystrokes are not appearing although the event is being called. A field.getValue() call only reveals the first keystroke.Code:/* "defaults" below contained w/in form creation defaults: { enforceMaxLength: true, enableKeyEvents: true, emptyText: 'New...', listeners: { keyup: { scope: this, fn: function (field, event, options) { return true; } } } }, items: [ { /* form items like text fields, combo boxes, etc */ }
This simple code worked in EXTJS 3.4 quite well. Here's my field definition w/in the form:
Has something changed? This also fails in EXTJS 4.1 GA.Code:{ xtype: 'textfield', fieldLabel: 'PO Number', name: 'poNumber', id: 'poNumber' }
-Doug
-
20 Jun 2012 1:02 PM #2
enforceMaxLength is messing this up
enforceMaxLength is messing this up
From the documentation:
So, when a maxLength is not set this implies that maxLength should be some humungo number by default. However, the behavior only allows me to type one character when enforceMaxLength is applied. When enforceMaxLength is false everything works OK. I think this is a bug.Code:maxLength : NumberMaximum input field length allowed by validation. This behavior is intended to provide instant feedback to the user by improving usability to allow pasting and editing or overtyping and back tracking. To restrict the maximum number of characters that can be entered into the field use theenforceMaxLength option. Defaults to Number.MAX_VALUE.
-
26 Jun 2012 5:29 PM #3
If you believe this to be a bug, please create a small working example we can run and using the following template:
http://www.sencha.com/forum/showthre...o-report-a-bug
Regards,
Scott.


Reply With Quote