[FIX] mail: picker shift-selection not reset pos

task-3473164

closes odoo/odoo#133192

X-original-commit: bfb1d9809cf5b04e22e581d38f7972e33ffa74d3
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
zel-odoo
2023-08-25 18:49:48 +02:00
parent aeb63498de
commit 29d169274b
@@ -303,8 +303,8 @@ export class EmojiPicker extends Component {
this.state.recent[codepoints] ??= 0;
this.state.recent[codepoints]++;
browser.localStorage.setItem("web.emoji.frequent", JSON.stringify(this.state.recent));
this.gridRef.el.scrollTop = 0;
if (!ev.shiftKey) {
this.gridRef.el.scrollTop = 0;
this.props.close?.();
this.props.onClose?.();
}