[FIX] web: dropdown remains always open on Mobile

Before this commit, on pivot view when a user adds some groupBy the
dropdown menu remains always open.

This commit restore the same behaviour like on desktop.

Steps to reproduce:
* Open an app with a Pivot view
* Select the Pivot view
* Add one "groupBy"
* The dropdown remains open => BUG

Task ID: 2439742

closes odoo/odoo#64944

X-original-commit: 298f3900a8f4c80fe06585634ce97c7725cf7f7d
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: rfr-odoo <rfr-odoo@users.noreply.github.com>
This commit is contained in:
Romeo Fragomeli
2021-01-22 15:00:20 +00:00
parent c8b3035efc
commit dbea01090f
@@ -47,9 +47,7 @@ odoo.define('web.PivotRenderer', function (require) {
onPatched(() => this._updateTooltip());
if (!this.env.device.isMobile) {
useExternalListener(window, 'click', this._resetState);
}
useExternalListener(window, 'click', this._resetState);
}
//----------------------------------------------------------------------