Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJS-7562
in
a recent build.
-
Sencha User
TextArea selectOnFocus Keyboard Navigation
Ext Version
Whatever used in the API Documentation. I use 4.1.1
Browser
Chrome 22
Description
selectOnFocus not honored when navigating using keyboard tab. Works with mouse select. selectOnFocus honored for textfield for both keyboard and mouse.
Steps to reproduces problem
Create form. Add few textfieldareas with selectOnFocus : true and navigate using keyboard tabs
Expected Result
Previously entered text should be selected
Result that occured:
Focus goes to beginning of textared
Test Case
Code pasted from example in the textarea documentation and added additional fields to demonstrate tab navigation.
Code:
Ext.create('Ext.form.Panel', {
title : 'Sample TextArea',
width : 400,
bodyPadding : 10,
renderTo : Ext.getBody(),
items : [
{
xtype : 'textareafield',
grow : true,
name : 'message',
fieldLabel : 'Message',
anchor : '100%',
value : 'text area 1',
selectOnFocus : true
},
{
xtype : 'textareafield',
grow : true,
name : 'message1',
fieldLabel : 'Message1',
anchor : '100%',
value : 'text area 2',
selectOnFocus : true
},
{
xtype : 'textfield',
grow : true,
name : 'message2',
fieldLabel : 'Message3',
anchor : '100%',
value : 'text field',
selectOnFocus : true
}
]
});
-
Thanks for the report! I have opened a bug in our bug tracker.