[FIX] web_editor, note: autofocus the editor on load note form view edit
On creating a new note, the focus was automatically set into the "tags" field. This was inconvenient and was replaced with an autofocus on the note itself so we the user can immediately start typing. closes odoo/odoo#70195 X-original-commit: 8fe89c5ebc138cb517938dbd6d975b8bec4eaf4d Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
@@ -157,7 +157,7 @@
|
||||
<field name="stage_id" domain="[('user_id','=',uid)]" widget="statusbar" options="{'clickable': '1'}"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<field name="memo" type="html" class="oe_memo" options="{'resizable': false}"/>
|
||||
<field name="memo" type="html" class="oe_memo" default_focus="1" options="{'resizable': false}"/>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids"/>
|
||||
|
||||
@@ -110,7 +110,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, {
|
||||
* @override
|
||||
*/
|
||||
getFocusableElement: function () {
|
||||
return this.$wysiwygWrapper || $();
|
||||
return this.wysiwyg && this.wysiwyg.$editable || $();
|
||||
},
|
||||
/**
|
||||
* Do not re-render this field if it was the origin of the onchange call.
|
||||
|
||||
Reference in New Issue
Block a user