[FIX] web: prevent focus issue with autoresize
The copied textarea used in autoresize was a valid target for focus when using the tab key. This is a major issue in editable list views, because when the user leaves a textarea, the list view jumps up, with no visible focused field.
This commit is contained in:
@@ -468,7 +468,7 @@ function autoresize ($textarea, options) {
|
||||
var $fixed_text_area;
|
||||
var min_height = (options && options.min_height) || 50;
|
||||
if (!$fixed_text_area) {
|
||||
$fixed_text_area = $('<textarea>').css({
|
||||
$fixed_text_area = $('<textarea disabled>').css({
|
||||
position: 'absolute',
|
||||
opacity: 0,
|
||||
height: 10,
|
||||
|
||||
Reference in New Issue
Block a user