diff options
| author | Géry Debongnie <ged@odoo.com> | 2016-02-17 13:56:27 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-02-17 14:24:09 +0100 |
| commit | be3f7ea433c912c670e17e622c062b281843aa71 (patch) | |
| tree | a2e25b2f8a48b0b503176eaeed4c98ea1528d3ef /addons/web/static/src/js/framework/utils.js | |
| parent | 891ab5bc36528a9edb0243f66f5933f70bc54712 (diff) | |
[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.
Diffstat (limited to 'addons/web/static/src/js/framework/utils.js')
| -rw-r--r-- | addons/web/static/src/js/framework/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/utils.js b/addons/web/static/src/js/framework/utils.js index a0ab37a7dfb..c1b9758b625 100644 --- a/addons/web/static/src/js/framework/utils.js +++ b/addons/web/static/src/js/framework/utils.js @@ -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, |
