You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
1.4 KiB

<?xml version="1.0" encoding="utf-8" ?>
<!--Auto suggestion template-->
<template name="Autosuggestchatter" id="autosuggest" xml:space="preserve">
<t t-name="autosuggest" t-inherit="mail.Composer" t-inherit-mode="extension" owl="1">
<xpath expr="//textarea[hasclass('o-mail-Composer-input')]" position="replace">
<div class="ac-input-container">
<textarea id="autoCompleteText" class="ac-user-input ac-user-input--autocomplete px-3 align-items-center" readonly="readonly"
disabled="disabled"/>
<textarea id="userInputText"
class="o-mail-Composer-input bg-view px-3 border-0 rounded-3 shadow-none overflow-auto"
t-ref="textarea"
style="height:40px;"
t-on-keydown="onKeydown"
t-on-keyup="onKeyupTextarea"
t-on-focusin="onFocusin"
t-on-focusout="() => this.props.composer.isFocused = false"
t-on-click="(ev) => markEventHandled(ev, 'composer.onClickTextarea')"
t-on-paste="onPaste"
t-model="props.composer.text"
t-att-placeholder="placeholder"
t-att-readOnly="!state.active"/>
</div>
</xpath>
</t>
</template>