[FIX] mail: auto-focus input on open thread in Discuss (touch and non-mobile devices).
Before this commit, when opening a discuss thread with a touch device that is not mobile (e.g. laptop with a touchscreen), the focus was not set on the input automatically. The intent behaviour is to auto-set the focus on non-mobile device including touch devices. This commit fixes this issue for touch and non-mobile devices. Task-ID 1838244
This commit is contained in:
committed by
Alexandre Kühn
parent
a56372a4ca
commit
66b44a5d8a
@@ -895,7 +895,7 @@ var Discuss = AbstractAction.extend(ControlPanelMixin, {
|
||||
this._basicComposer.do_toggle(this._thread.getType() !== 'mailbox' && !this._thread.isMassMailing());
|
||||
this._extendedComposer.do_toggle(this._thread.getType() !== 'mailbox' && !!this._thread.isMassMailing());
|
||||
|
||||
if (!config.device.touch) {
|
||||
if (!config.device.isMobile) {
|
||||
var composer = this._thread.getType() !== 'mailbox' && this._thread.isMassMailing() ?
|
||||
this._extendedComposer :
|
||||
this._basicComposer;
|
||||
|
||||
Reference in New Issue
Block a user