diff --git a/addons/mail/static/src/core/web/follower_list.js b/addons/mail/static/src/core/web/follower_list.js index ebb29c519eb..ea636dada6f 100644 --- a/addons/mail/static/src/core/web/follower_list.js +++ b/addons/mail/static/src/core/web/follower_list.js @@ -69,6 +69,7 @@ export class FollowerList extends Component { follower, onFollowerChanged: () => this.props.onFollowerChanged?.(), }); + document.body.click(); // hack to close dropdown } /** diff --git a/addons/mail/static/tests/web/follower_tests.js b/addons/mail/static/tests/web/follower_tests.js index 6adc967f566..228334e7456 100644 --- a/addons/mail/static/tests/web/follower_tests.js +++ b/addons/mail/static/tests/web/follower_tests.js @@ -121,6 +121,7 @@ QUnit.test("click on edit follower", async (assert) => { assert.containsOnce($, "button[title='Edit subscription']"); await click("button[title='Edit subscription']"); + assert.containsNone($, ".o-mail-Follower"); assert.verifySteps(["fetch_subtypes"]); assert.containsOnce($, ".o-mail-FollowerSubtypeDialog"); });